:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --navy-soft: #284a73;
  --accent: #c4704f;
  --accent-dark: #a95e42;
  --ink: #152033;
  --text: #566174;
  --muted: #7a8597;
  --line: #dfe6ee;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --shadow: 0 18px 55px rgba(21, 32, 51, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eef3f8;
  color: var(--navy);
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-dark);
  box-shadow: 0 6px 24px rgba(10, 22, 38, 0.14);
}

.nav-shell {
  width: min(100% - 48px, var(--container));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.brand-logo-shell {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: #edf4fb;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle-line,
.menu-toggle-line::before,
.menu-toggle-line::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 4px;
  background: currentColor;
}

.menu-toggle-line {
  position: relative;
}

.menu-toggle-line::before,
.menu-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-line::before {
  top: -7px;
}

.menu-toggle-line::after {
  top: 7px;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/hero-screed.webp");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 23, 37, 0.64), rgba(12, 23, 37, 0.78)),
    radial-gradient(circle at 50% 40%, rgba(30, 58, 95, 0.1), rgba(0, 0, 0, 0.38));
}

.hero-content {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(100%, 760px);
  margin: 26px auto 0;
  color: #e6edf5;
  font-size: 22px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(30, 58, 95, 0.28);
}

.button-primary:hover {
  background: var(--navy-soft);
}

.button-secondary,
.button-light {
  background: #eef4fb;
  color: var(--navy);
}

.button-secondary:hover,
.button-light:hover {
  background: #dce8f4;
}

.section {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 86px 0;
}

.section-soft {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100% - var(--container)) / 2));
  padding-right: max(24px, calc((100% - var(--container)) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.section-heading p:not(.eyebrow) {
  margin: 18px auto 0;
  color: var(--text);
}

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

.feature-card,
.service-card,
.testimonial-card,
.contact-card,
.card-form,
.step-card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(21, 32, 51, 0.06);
}

.feature-card {
  min-height: 280px;
  padding: 46px 30px;
  text-align: center;
}

.icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3f9;
  color: var(--navy);
}

.icon-badge svg {
  width: 32px;
  height: 32px;
}

.feature-card h3,
.service-card h3,
.testimonial-card strong,
.step-card h3 {
  margin: 0;
  color: #3b4659;
  font-size: 22px;
}

.feature-card p,
.service-card p,
.testimonial-card p,
.step-card p,
.form-panel p,
.contact-card dd {
  color: var(--text);
}

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

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

.service-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card p {
  margin: 0;
}

.service-meta {
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.center-action {
  margin-top: 38px;
  text-align: center;
}

.testimonial-card {
  padding: 28px;
}

.testimonial-card p {
  min-height: 104px;
}

.testimonial-card span {
  display: block;
  color: var(--muted);
}

.stars {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 12px;
}

.page-hero {
  padding: 112px 24px 92px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.94), rgba(21, 42, 69, 0.98)),
    url("/assets/hero-screed.webp") center / cover;
}

.page-hero p:not(.eyebrow) {
  width: min(100%, 760px);
  margin: 22px auto 0;
  color: #e7eef7;
  font-size: 20px;
}

.compact-hero {
  padding-top: 76px;
  padding-bottom: 76px;
}

.process-band {
  padding: 84px max(24px, calc((100% - var(--container)) / 2));
  background: var(--navy);
  color: #fff;
}

.process-band .section-heading h2,
.process-band .section-heading p {
  color: #fff;
}

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

.step-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
}

.step-card h3,
.step-card p {
  color: #fff;
}

.form-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: start;
}

.form-panel,
.contact-card {
  padding: 30px;
}

.check-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 14px 0;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.card-form {
  padding: 30px;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0 0 26px;
  border: 0;
}

legend,
.card-form h2,
.contact-card h2,
.form-panel h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #344055;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e4;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.14);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-status.show {
  display: block;
}

.form-status.success {
  color: #155724;
  background: #d7f2df;
}

.form-status.error {
  color: #7b1d1d;
  background: #fde2e2;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 20px;
}

.contact-card dt {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.contact-card dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.prose {
  max-width: 880px;
}

.prose h2 {
  margin-top: 34px;
}

.prose a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
}

.dashboard-section {
  max-width: 980px;
}

.dashboard-wide {
  max-width: var(--container);
}

.dashboard-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fafc;
}

.dashboard-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--navy);
  font-weight: 900;
}

.dashboard-tabs a.active {
  color: #fff;
  background: var(--navy);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.dashboard-preview {
  min-height: 100%;
}

.logo-preview-box {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed #b9c6d6;
  border-radius: var(--radius);
  background: #f7fafc;
  margin-bottom: 16px;
  padding: 24px;
}

.logo-preview-box img {
  max-width: min(100%, 240px);
  max-height: 140px;
  object-fit: contain;
}

.dashboard-form input[type="file"] {
  padding: 10px;
  background: #f7fafc;
}

.dashboard-logout {
  margin-top: 24px;
}

.dashboard-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-inline-form .button {
  min-height: 40px;
}

.dashboard-content-form fieldset {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.message-list {
  display: grid;
  gap: 18px;
}

.message-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.message-card.read {
  opacity: 0.72;
}

.message-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.message-card header span {
  color: var(--muted);
  font-size: 14px;
}

.message-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 14px;
}

.message-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-card dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dashboard-repeater {
  display: grid;
  gap: 16px;
}

.repeater-row {
  display: grid;
  grid-template-columns: 32px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #dbe4ee;
  border-radius: var(--radius);
  background: #f9fbfd;
}

.repeater-row strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}

.site-footer {
  color: #dbe7f4;
  background: var(--navy);
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 64px max(24px, calc((100% - var(--container)) / 2));
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
}

.footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}

.footer-cta p:not(.eyebrow) {
  margin: 12px 0 0;
  max-width: 720px;
}

.footer-grid {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 16px;
  color: #fff;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
  display: block;
  margin: 8px 0;
  color: #dbe7f4;
}

.muted {
  color: var(--muted) !important;
}

.footer-bottom {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #c9d7e8;
  font-size: 14px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav-shell {
    width: min(100% - 32px, var(--container));
    flex-wrap: wrap;
    gap: 14px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
  }

  .nav-shell.menu-open .nav-links {
    display: flex;
  }

  .nav-shell.menu-open .nav-links {
    flex: 0 0 100%;
    margin: 0;
    padding: 14px 0 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero {
    min-height: 620px;
  }

  .feature-grid,
  .service-grid,
  .service-grid.compact,
  .testimonial-grid,
  .steps,
  .form-layout,
  .contact-layout,
  .message-card dl,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-layout,
  .contact-layout {
    gap: 24px;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
    font-size: 14px;
  }

  .brand-logo-shell {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .hero {
    min-height: 610px;
    place-items: end center;
    padding-bottom: 38px;
  }

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

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
    overflow-wrap: anywhere;
  }

  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 32px, var(--container));
  }

  .section,
  .section-soft {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-grid,
  .service-grid,
  .service-grid.compact,
  .testimonial-grid,
  .steps,
  .form-layout,
  .contact-layout,
  .dashboard-grid,
  .message-card dl,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .repeater-row {
    grid-template-columns: 1fr;
  }

  .message-card header {
    flex-direction: column;
  }

  .feature-card {
    min-height: 0;
    padding: 34px 24px;
  }

  .page-hero {
    padding: 82px 18px 70px;
  }

  .card-form,
  .form-panel,
  .contact-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
