:root {
  color-scheme: light;
  --navy: #071727;
  --navy-soft: #102e4d;
  --navy-mist: #e8eef5;
  --gold: #c7a248;
  --gold-bright: #f2d77f;
  --green: #3f6b5c;
  --ink: #182334;
  --muted: #5c6673;
  --line: #d7dde6;
  --paper: #f7f8f6;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(7, 23, 39, 0.14);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

body::selection {
  background: var(--gold-bright);
  color: var(--navy);
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  fill: currentColor;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--gold-bright);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.topbar a {
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(20px, calc((100vw - var(--content)) / 2));
  background: rgba(247, 248, 246, 0.96);
  border-bottom: 1px solid rgba(215, 221, 230, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #8d6c22;
}

.nav-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-call {
  background: var(--navy);
  color: var(--white) !important;
}

.nav-call svg,
.button svg,
.mobile-call-bar svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:hover,
.button:focus-visible,
.nav-call:hover,
.nav-call:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold-bright);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(242, 215, 127, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ffe48c;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: 108px max(20px, calc((100vw - var(--content)) / 2)) 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 23, 39, 0.95) 0%, rgba(7, 23, 39, 0.78) 42%, rgba(7, 23, 39, 0.2) 100%),
    url("assets/keystone-hero-bg.png") center / cover no-repeat,
    var(--navy);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(242, 215, 127, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding-bottom: 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-slogan {
  margin: 22px 0 0;
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--content), 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 23, 39, 0.76);
}

.hero-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.hero-strip span:first-child {
  border-left: 0;
}

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

.section-heading {
  max-width: 720px;
}

.section-heading.center {
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.feature-copy h2,
.area-copy h2,
.cta-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.intro-copy {
  display: grid;
  gap: 18px;
  color: #334154;
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0;
}

.services-section {
  padding-top: 24px;
}

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

.service-card,
.process-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(7, 23, 39, 0.05);
}

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy-mist);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card h3,
.process-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.17rem;
  line-height: 1.25;
}

.service-card p,
.process-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  padding-top: 22px;
  color: #8d6c22;
  font-weight: 900;
  text-decoration: none;
}

.service-card a:hover,
.service-card a:focus-visible {
  color: var(--navy);
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 86px max(20px, calc((100vw - var(--content)) / 2));
  background: var(--navy);
  color: var(--white);
}

.feature-copy h2,
.feature-copy p {
  color: var(--white);
}

.feature-copy p:last-child {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

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

.feature-list div {
  padding: 22px;
  border: 1px solid rgba(242, 215, 127, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  color: var(--gold-bright);
  font-size: 1rem;
}

.feature-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  padding: 24px;
}

.process-grid article span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gold-bright);
  color: var(--navy);
  font-weight: 900;
}

.area-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 90px max(20px, calc((100vw - var(--content)) / 2));
  background: #e8eef5;
}

.area-map {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(199, 162, 72, 0.22), rgba(63, 107, 92, 0.1)),
    radial-gradient(circle at 32% 20%, rgba(242, 215, 127, 0.7), transparent 10%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.area-map::before {
  content: "";
  position: absolute;
  width: 48%;
  height: 74%;
  background: var(--navy);
  clip-path: polygon(50% 0, 92% 16%, 92% 56%, 50% 100%, 8% 56%, 8% 16%);
  opacity: 0.96;
}

.area-map::after {
  content: "";
  position: absolute;
  width: 33%;
  height: 52%;
  border: 2px solid rgba(242, 215, 127, 0.72);
  clip-path: polygon(50% 0, 92% 16%, 92% 56%, 50% 100%, 8% 56%, 8% 16%);
}

.area-map strong {
  position: relative;
  z-index: 2;
  color: var(--gold-bright);
  font-size: 2.2rem;
  letter-spacing: 0;
}

.map-dot {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 3px solid var(--gold-bright);
  border-radius: 999px;
  background: var(--navy);
}

.map-dot.one {
  left: 36%;
  top: 42%;
}

.map-dot.two {
  left: 55%;
  top: 36%;
}

.map-dot.three {
  left: 48%;
  top: 58%;
}

.area-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: #334154;
  font-size: 1.08rem;
}

.availability {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.availability span {
  padding: 9px 12px;
  border: 1px solid rgba(7, 23, 39, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.9rem;
}

.faq-section {
  padding-bottom: 66px;
}

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

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
  list-style-position: outside;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-section {
  margin: 0 auto 92px;
  width: min(var(--content), calc(100% - 40px));
  padding: 58px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 23, 39, 0.96), rgba(16, 46, 77, 0.92)),
    var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-section h2 {
  max-width: 820px;
  color: var(--white);
}

.cta-section p:not(.eyebrow) {
  max-width: 700px;
  margin: 18px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  padding: 42px max(20px, calc((100vw - var(--content)) / 2)) 96px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
}

.footer-brand {
  color: var(--white);
  font-weight: 900;
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-contact a {
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.mobile-call-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 28;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--gold-bright);
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(7, 23, 39, 0.24);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .site-header {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .nav-call {
    margin-top: 6px;
  }

  .hero {
    min-height: 610px;
    padding-top: 78px;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip span:nth-child(3) {
    border-left: 0;
  }

  .intro-section,
  .feature-band,
  .area-section {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-map {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .topbar {
    justify-content: flex-start;
    font-size: 0.8rem;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .hero {
    min-height: 590px;
    padding-left: 20px;
    padding-right: 20px;
    background:
      linear-gradient(90deg, rgba(7, 23, 39, 0.95) 0%, rgba(7, 23, 39, 0.82) 100%),
      url("assets/keystone-hero-bg.png") center / cover no-repeat,
      var(--navy);
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.35rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .nav-call {
    width: 100%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip span {
    min-height: 52px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-strip span:first-child {
    border-top: 0;
  }

  .section {
    width: min(100% - 32px, var(--content));
    padding: 64px 0;
  }

  .section-heading.center {
    text-align: left;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .feature-band,
  .area-section {
    padding: 64px 20px;
  }

  .area-map {
    min-height: 260px;
  }

  .cta-section {
    width: min(100% - 32px, var(--content));
    margin-bottom: 64px;
    padding: 34px 22px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 96px;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .mobile-call-bar {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
