:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eef7f4;
  --text: #13201d;
  --muted: #65736f;
  --line: #dbe7e3;
  --mint: #18a999;
  --mint-dark: #0f766b;
  --blue: #2563eb;
  --violet: #7c3aed;
  --amber: #d97706;
  --orange: #e9a540;
  --shadow: 0 22px 60px rgba(18, 32, 29, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 140px, rgba(233, 165, 64, 0.1), transparent 250px),
    linear-gradient(180deg, rgba(24, 169, 153, 0.1), rgba(247, 250, 249, 0) 340px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  border-bottom: 1px solid rgba(219, 231, 227, 0.76);
  background: rgba(247, 250, 249, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--text);
}

.brand-logo {
  width: 34px;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 169, 153, 0.2));
}

.nav-links {
  margin: 0;
  padding: 0;
  gap: 6px;
}

.nav-links .nav-link {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links .nav-link:hover,
.nav-links .nav-link:focus,
.nav-links .nav-link.active {
  background: var(--surface-soft);
  color: var(--mint-dark);
}

.navbar-toggler {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(24, 169, 153, 0.16);
}

.home-hero {
  padding: 52px 0 24px;
}

.hero-grid {
  min-height: 338px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.42fr);
  align-items: center;
  gap: 42px;
}

.eyebrow,
.card-eyebrow {
  margin: 0 0 12px;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 5.35rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero-actions,
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.disabled {
  cursor: default;
  opacity: 0.72;
}

.button.disabled:hover {
  transform: none;
}

.button.primary {
  background: var(--mint);
  color: white;
  box-shadow: 0 14px 30px rgba(24, 169, 153, 0.24);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.hero-mark {
  justify-self: end;
  width: min(270px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(219, 231, 227, 0.94);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(238, 247, 244, 0.66)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-mark img {
  width: 66%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(18, 32, 29, 0.12));
  transform: rotate(-6deg);
}

.section-pad {
  padding: 40px 0 76px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 22px;
}

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

.service-card,
.contact-card,
.partner-item,
.notice-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(18, 32, 29, 0.07);
}

.service-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-top: 4px solid var(--mint);
}

.service-card p,
.contact-card p,
.partner-item p,
.notice-band p {
  color: var(--muted);
}

.service-card .card-link,
.status-pill {
  margin-top: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-dark);
  font-weight: 800;
  text-decoration: none;
}

.card-link span {
  transition: transform 180ms ease;
}

.card-link:hover span {
  transform: translateX(4px);
}

.status-pill {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.accent-blue {
  border-top-color: var(--blue);
}

.accent-violet {
  border-top-color: var(--violet);
}

.accent-amber {
  border-top-color: var(--amber);
}

.page-hero {
  padding: 60px 0 24px;
}

.compact-hero h1 {
  max-width: 900px;
  font-size: 3.9rem;
}

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

.partner-item,
.notice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.partner-item h2,
.notice-band h2,
.contact-card h2 {
  margin-bottom: 8px;
}

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

.contact-grid-single {
  grid-template-columns: 1fr;
}

.contact-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.contact-grid-single .contact-card {
  min-height: 176px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card .button {
  margin-top: auto;
}

.contact-grid-single .contact-card .button {
  margin-top: 0;
  white-space: nowrap;
}

.notice-band {
  margin-top: 18px;
  background: var(--surface-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.footer-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-shell p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: rise 640ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.25rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .compact-hero h1 {
    font-size: 3.35rem;
  }

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

  .hero-grid {
    gap: 28px;
  }

  .hero-mark {
    width: 220px;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 3.28rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .compact-hero h1 {
    font-size: 2.76rem;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  .shell {
    width: min(100% - 28px, 1120px);
  }

  .footer-shell,
  .partner-item,
  .notice-band,
  .contact-grid-single .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero {
    padding-top: 40px;
  }

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

  .hero-mark {
    justify-self: start;
    width: 156px;
    order: -1;
  }

  .section-pad {
    padding: 34px 0 60px;
  }

  .contact-grid-single .contact-card .button {
    margin-top: 12px;
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .nav-shell {
    min-height: 64px;
    padding: 8px 0;
  }

  .site-nav .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(18, 32, 29, 0.08);
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links .nav-link {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
