:root {
  --accent: #f47b20;
  --accent-dark: #c65d0d;
  --ink: #262626;
  --muted: #6f7479;
  --soft: #f3f4f5;
  --line: #dedede;
  --charcoal: #2d2d2d;
  --charcoal-deep: #222;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  --button-shadow: 0 14px 28px rgba(244, 123, 32, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  background: #e9e9e9;
  color: #777;
  font-size: 13px;
}

.topbar-inner,
.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar strong,
.contact-line strong {
  color: var(--ink);
}

.site-header {
  background: linear-gradient(180deg, var(--white), #fbfbfb);
  border-bottom: 1px solid #d7d7d7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 20;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(244, 123, 32, 0));
}

.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  position: relative;
  padding: 8px 0 11px;
  min-width: 360px;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 4px;
  background: var(--accent);
}

.brand-logo {
  width: 320px;
  height: auto;
  background: transparent;
}

.nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 35px 18px;
  border-left: 1px solid #d9d9d9;
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  background: rgba(244, 123, 32, 0.06);
}

.nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), #ff9c3f);
  border-left: 0;
  min-height: 44px;
  margin-left: 14px;
  padding: 0 22px;
  align-self: center;
  border-radius: 999px;
  box-shadow: var(--button-shadow);
  font-weight: 700;
}

.hero {
  min-height: 540px;
  position: relative;
  display: grid;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12)), url("../images/hero-mercy-cancer-center.webp");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 72px;
  color: var(--white);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
}

.hero p,
.page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff9c3f);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--button-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.button:hover,
.button:focus-visible {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 18px 36px rgba(244, 123, 32, 0.34);
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(120%);
}

.button.dark {
  background: linear-gradient(135deg, #101010, var(--charcoal));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.button.dark:hover,
.button.dark:focus-visible {
  background: linear-gradient(135deg, #000, #343434);
}

.button.light {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.button.light:hover,
.button.light:focus-visible {
  background: #f7f7f7;
  color: var(--accent-dark);
}

.quote-band {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.quote-band .section-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.quote-band h2 {
  margin: 0;
  color: #777;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 400;
}

.section {
  padding: 72px 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 8px;
  color: #777;
  font-size: 31px;
  font-weight: 400;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

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

.service-card {
  min-width: 0;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card::before,
.project-card::before,
.footer-col h3::after {
  content: "";
  display: block;
  width: 110px;
  height: 4px;
  background: var(--accent);
}

.service-card h3 {
  margin: 12px 0 7px;
  color: var(--accent);
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 42px;
}

.project-band .section-header h2,
.project-band .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 13px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.project-strip,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-slider {
  position: relative;
  margin: 0 auto;
  max-width: 1020px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171717;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.project-viewport {
  position: relative;
  min-height: 430px;
}

.project-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.project-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.project-slide img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.project-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 38px;
  background: linear-gradient(145deg, #262626, #151515);
}

.project-slide-copy h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
}

.project-slide-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.slide-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.54);
  color: var(--white);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.slide-control:hover,
.slide-control:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.slide-control.prev {
  left: 18px;
}

.slide-control.next {
  right: 18px;
}

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slide-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.slide-dot.active,
.slide-dot:hover,
.slide-dot:focus-visible {
  background: var(--accent);
}

.project-card {
  position: relative;
  overflow: hidden;
  background: #111;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  padding: 38px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: var(--white);
}

.project-info h3 {
  margin: 0;
  font-size: 16px;
}

.project-info p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.feature-list {
  display: grid;
  gap: 26px;
}

.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.feature h3,
.news-card h3,
.contact-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 18px;
}

.feature p,
.news-card p,
.contact-card p,
.about-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  display: grid;
  gap: 22px;
}

.news-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.credibility {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.badge-panel {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.badge-panel img {
  width: 110px;
}

.contact-band {
  background: var(--charcoal-deep);
  color: var(--white);
}

.contact-band .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.contact-band h2 {
  margin: 0 0 7px;
  font-size: 30px;
}

.contact-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  background: #303030;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 34px;
  padding: 42px 0;
  border-top: 4px solid #b9b9b9;
}

.footer-col h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-col h3::after {
  margin-top: 8px;
  width: 56px;
  height: 3px;
}

.footer-logo {
  width: 250px;
  margin-bottom: 12px;
  background: var(--white);
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 8px;
}

.copyright {
  background: #242424;
  color: rgba(255, 255, 255, 0.56);
  padding: 14px 0;
  font-size: 12px;
}

.page-hero {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)), url("../images/project-kirkwood-performing-arts.webp");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.page-hero .section-inner {
  padding: 96px 0;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card.is-hidden {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.contact-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-line {
  margin-top: 18px;
}

.map-panel {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #f1f1f1, #d8d8d8);
  border: 1px solid var(--line);
  text-align: center;
}

@media (max-width: 920px) {
  .topbar-inner,
  .quote-band .section-inner,
  .contact-band .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .hero-content {
    width: min(100% - 48px, 300px);
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav a {
    justify-content: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: center;
  }

  .nav .nav-cta {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .service-grid,
  .project-strip,
  .project-slide,
  .gallery-grid,
  .split,
  .credibility-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .news-card,
  .badge-panel {
    grid-template-columns: 1fr;
  }

  .project-viewport {
    min-height: 690px;
  }

  .project-slide {
    position: absolute;
  }

  .project-slide img {
    height: 330px;
  }

  .project-slide-copy {
    min-height: 360px;
    padding: 34px 28px 70px;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 30px, var(--max));
    max-width: calc(100vw - 30px);
  }

  .hero-content {
    width: min(100% - 30px, 300px);
  }

  .hero {
    min-height: 500px;
  }

  .section {
    padding: 54px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(100%, 290px);
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .nav a {
    justify-content: center;
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
  }

  .nav .nav-cta {
    width: 100%;
    justify-self: stretch;
    padding: 0 24px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .project-viewport {
    min-height: 640px;
  }

  .slide-control {
    top: 305px;
    width: 40px;
    height: 40px;
  }
}
