:root {
  --blue: #1d71b8;
  --blue-dark: #155484;
  --teal: #017e8c;
  --teal-soft: #e8f6f7;
  --pink: #ec008b;
  --green: #6eab3a;
  --orange: #ff9933;
  --purple: #6b2975;
  --ink: #203040;
  --muted: #647184;
  --line: #dce4ec;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --shadow: 0 12px 26px rgba(20, 40, 60, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Montserrat, Lato, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--pink);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

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

.skip-link,
.sr-only,
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--pink);
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 14px;
}

.top-strip {
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.top-strip__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 38px;
}

.top-strip a {
  color: #fff;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 48, 64, 0.12);
  backdrop-filter: blur(10px);
}

.nav-shell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.brand img {
  width: 165px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 12px 11px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav .has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.site-nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-nav li:hover > ul,
.site-nav li:focus-within > ul {
  display: block;
}

.site-nav li ul a {
  padding: 10px 12px;
  border-radius: 4px;
  color: var(--ink);
}

.site-nav li ul a:hover {
  color: #fff;
  background: var(--blue);
}

.nav-cta a {
  margin-left: 8px;
  color: #fff;
  background: var(--pink);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.home-hero {
  min-height: 660px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 45, 78, 0.80), rgba(12, 45, 78, 0.35)),
    var(--hero-image) center / cover no-repeat;
}

.home-hero__inner {
  display: flex;
  align-items: center;
  min-height: 660px;
}

.home-hero__inner > div {
  width: min(650px, 100%);
}

.home-hero p {
  max-width: 650px;
  font-size: 20px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #fff;
}

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

.section {
  padding: 72px 0;
}

.intro-band {
  background: var(--soft);
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.stat-panel,
.contact-panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-panel {
  padding: 28px;
}

.stat-panel strong,
.stat-panel span {
  display: block;
}

.stat-panel strong {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 22px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 790px;
  color: var(--blue);
}

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

.service-card {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card a {
  display: flex;
  min-height: 100%;
  color: #fff;
  flex-direction: column;
}

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

.service-card div {
  display: flex;
  min-height: 220px;
  padding: 22px;
  flex-direction: column;
}

.service-card h3 {
  font-size: 22px;
}

.service-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.service-card span {
  margin-top: auto;
  font-weight: 800;
}

.service-card--teal {
  background: var(--teal);
}

.service-card--green {
  background: var(--green);
}

.service-card--purple {
  background: var(--purple);
}

.service-card--orange {
  background: var(--orange);
}

.service-card--pink {
  background: var(--pink);
}

.cta-band {
  padding: 64px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(29, 113, 184, 0.96), rgba(1, 126, 140, 0.94)),
    url("../image/thumbnail/none.jpg") center / 320px repeat;
  text-align: center;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero__image {
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(32, 48, 64, 0.12), rgba(32, 48, 64, 0.12)),
    var(--hero-image) center / cover no-repeat;
}

.page-hero__copy {
  position: relative;
  padding: 54px 0 62px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 -8px 28px rgba(20, 40, 60, 0.16);
}

.page-hero__copy::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 72px;
  background: linear-gradient(155deg, transparent 49%, var(--teal) 50%);
}

.page-hero__copy h1 {
  max-width: 900px;
  font-size: 46px;
}

.page-hero__copy p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.breadcrumb {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb span {
  margin: 0 8px;
}

.content-stack {
  display: grid;
  gap: 54px;
}

.post-card {
  background: #fff;
}

.post-card:nth-child(even) {
  background: var(--soft);
}

.post-card__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
  padding: 24px 0;
}

.post-card--reverse .post-card__inner {
  grid-template-columns: 1.05fr 0.95fr;
}

.post-card--reverse .post-card__media {
  order: 2;
}

.post-card__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.post-card__copy h1,
.post-card__copy h2,
.post-card__copy h3 {
  color: var(--blue);
}

.post-card__copy li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.inline-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.empty-state {
  max-width: 760px;
}

.contact-section {
  background: var(--soft);
}

.contact-panel {
  padding: 26px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a,
.footer-contact a {
  display: block;
  font-weight: 800;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(29, 113, 184, 0.16);
}

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

.contact-form--compact label span {
  color: #2f3f4e;
}

.notice {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 700;
}

.notice p {
  margin: 0;
}

.notice-success {
  color: #174d22;
  background: #dff3e2;
}

.notice-error {
  color: #6e1621;
  background: #fde3e6;
}

.not-found {
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.site-footer {
  background: #f1f4f5;
}

.footer-social {
  padding: 46px 0;
  background: #e1e5e8;
  text-align: center;
}

.footer-social h2 {
  color: var(--ink);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-weight: 800;
}

.social-links a:nth-child(2) {
  background: var(--orange);
}

.social-links a:nth-child(3) {
  background: var(--green);
}

.footer-main {
  padding: 54px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-logo img {
  width: 175px;
}

.footer-bottom {
  padding: 18px 0;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.admin-body {
  background: #edf2f7;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  padding: 24px;
  color: #fff;
  background: #263445;
}

.admin-brand {
  display: block;
  margin-bottom: 28px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
}

.admin-sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  padding: 34px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-card {
  padding: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.admin-stats strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.admin-stats span,
.admin-db {
  color: var(--muted);
}

.admin-db {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.admin-db.is-ok {
  color: #1f6b2c;
}

.admin-db.is-error,
.admin-warning {
  color: #8a1b2a;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login__form {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
}

.menu-list {
  display: grid;
  gap: 20px;
}

.menu-list article + article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.menu-list h2 {
  color: var(--blue);
  font-size: 22px;
}

.menu-list span {
  color: var(--muted);
}

pre {
  overflow: auto;
  padding: 14px;
  border-radius: 6px;
  background: #17212d;
  color: #fff;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav ul {
    display: grid;
    gap: 0;
  }

  .site-nav li ul {
    position: static;
    display: block;
    width: auto;
    margin-left: 12px;
    border: 0;
    box-shadow: none;
  }

  .nav-cta a {
    margin: 8px 0 0;
  }

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

  .footer-grid,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .top-strip__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 0;
  }

  .brand img {
    width: 138px;
  }

  .home-hero,
  .home-hero__inner {
    min-height: 540px;
  }

  .home-hero p,
  .page-hero__copy p {
    font-size: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .services-grid,
  .form-grid,
  .post-card__inner,
  .post-card--reverse .post-card__inner {
    grid-template-columns: 1fr;
  }

  .post-card--reverse .post-card__media {
    order: 0;
  }

  .page-hero__image {
    min-height: 300px;
  }

  .page-hero__copy {
    padding: 40px 0 48px;
  }

  .footer-grid {
    gap: 28px;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-sidebar nav,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: block;
  }
}
