:root {
  --ink: #132034;
  --muted: #5d6779;
  --line: #dfe5ec;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --navy: #10213b;
  --blue: #1265c7;
  --green: #00a85a;
  --amber: #f4af01;
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  background: var(--paper);
  border: 1px solid var(--line);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -48px;
  z-index: 20;
}

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

.app-shell {
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 33, 59, 0.08);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  height: 58px;
  width: auto;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 14px;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e9f1fb;
  color: var(--blue);
}

.language-toggle {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  min-width: 52px;
  padding: 8px 14px;
}

.language-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-button {
  align-items: center;
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.menu-button span {
  background: var(--paper);
  border-radius: 3px;
  height: 2px;
  width: 18px;
}

main {
  min-height: 70vh;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.section.tight {
  padding-top: 40px;
}

.wrap {
  margin: 0 auto;
  max-width: 1160px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 92px);
  max-width: 920px;
}

h2 {
  font-size: clamp(34px, 5vw, 62px);
}

h3 {
  font-size: clamp(22px, 3vw, 34px);
}

p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  margin: 0;
}

.hero {
  background: var(--navy);
  color: var(--paper);
  display: grid;
  min-height: calc(100vh - 87px);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, rgba(16, 33, 59, 0.94) 0%, rgba(16, 33, 59, 0.78) 48%, rgba(16, 33, 59, 0.16) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-content {
  align-self: end;
  max-width: 1120px;
  padding: clamp(70px, 12vw, 140px) clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 24px;
  max-width: 680px;
}

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

.button {
  align-items: center;
  background: var(--green);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--paper);
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 20px;
}

.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
}

.button.outline {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.intro-grid,
.two-col {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.media-frame,
.map-visual {
  border-radius: var(--radius);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.media-frame img,
.map-visual img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.stat-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.stat strong {
  color: var(--blue);
  display: block;
  font-size: 28px;
}

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

.service-card {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  color: var(--paper);
  display: flex;
  min-height: 250px;
  overflow: hidden;
  position: relative;
}

.service-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: transform 400ms ease;
  width: 100%;
}

.service-card::after {
  background: linear-gradient(180deg, rgba(16, 33, 59, 0.08), rgba(16, 33, 59, 0.86));
  content: "";
  inset: 0;
  position: absolute;
}

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

.service-card span {
  align-self: end;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  padding: 24px;
  position: relative;
  z-index: 1;
}

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

.portfolio-actions {
  margin-top: 24px;
}

.portfolio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-card img {
  aspect-ratio: 4 / 3;
  background: #dfe5ec;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.portfolio-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.portfolio-card-body h3 {
  font-size: 24px;
}

.portfolio-card-body p {
  font-size: 16px;
}

.portfolio-link {
  color: var(--blue);
  font-weight: 800;
}

.portfolio-empty {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 26px;
}

.portfolio-empty a {
  color: var(--blue);
  font-weight: 800;
}

.portfolio-admin {
  display: grid;
  gap: 34px;
}

.portfolio-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.admin-actions,
.admin-heading-actions,
.admin-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.admin-actions {
  justify-content: flex-start;
  margin-top: 8px;
}

.admin-heading-actions {
  justify-content: flex-end;
}

.import-button {
  cursor: pointer;
  position: relative;
}

.import-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.portfolio-admin-item {
  display: grid;
  gap: 10px;
}

.portfolio-card-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-admin-item .button,
.portfolio-card-actions .button {
  justify-content: center;
}

.button.danger {
  border-color: #e1b7b7;
  color: #b72d2d;
}

.button.danger:hover {
  background: #fff2f2;
}

.portfolio-publish-note {
  margin-top: 24px;
}

.portfolio-publish-note h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.content-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
}

.content-panel + .content-panel {
  margin-top: 18px;
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

input,
textarea {
  border: 1px solid #b9c3cf;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  resize: vertical;
}

textarea {
  min-height: 130px;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.form-status a {
  color: var(--blue);
  font-weight: 800;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.address-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

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

.map-link {
  color: var(--blue);
  display: inline-flex;
  font-weight: 800;
  margin-top: 20px;
}

.settings-layout {
  display: grid;
  gap: 30px;
  max-width: 760px;
}

.settings-group h2 {
  color: #8a98a6;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.settings-list {
  background: var(--paper);
  border: 1px solid #c5d5cb;
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-row {
  align-items: center;
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid #c5d5cb;
  color: #6f7774;
  display: flex;
  font: inherit;
  font-size: 20px;
  justify-content: space-between;
  min-height: 62px;
  padding: 16px 20px;
  text-align: left;
  width: 100%;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row.pointer {
  cursor: pointer;
}

.settings-row:hover,
.settings-row.selected {
  background: #f4f7f9;
  color: var(--ink);
}

.sharing-row {
  align-items: flex-start;
  gap: 18px;
}

.sharing-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.share-button {
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
}

.share-button.facebook {
  background: #3b5999;
}

.share-button.twitter {
  background: #55acef;
}

.checkmark {
  color: var(--green);
  font-weight: 900;
  min-width: 20px;
  text-align: right;
}

.settings-status {
  color: var(--green);
  font-size: 16px;
  margin-top: 12px;
}

.credits-panel {
  text-align: center;
}

.credits-panel img {
  margin: 0 auto 24px;
  max-width: 220px;
}

.privacy-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.privacy-frame {
  border: 0;
  display: block;
  height: min(78vh, 980px);
  min-height: 640px;
  width: 100%;
}

.route-banner {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(64px, 10vw, 120px) clamp(18px, 5vw, 64px);
}

.route-banner p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 16px;
  max-width: 700px;
}

.site-footer {
  align-items: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
}

.site-footer strong {
  color: var(--paper);
}

.site-footer span,
.site-footer small {
  display: block;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--paper);
  font-weight: 700;
}

@media (max-width: 880px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    align-content: center;
    background: var(--navy);
    display: grid;
    gap: 10px;
    inset: 87px 0 auto 0;
    min-height: calc(100vh - 87px);
    opacity: 0;
    padding: 32px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    color: var(--paper);
    font-size: 26px;
    padding: 14px;
  }

  .language-toggle {
    order: 2;
  }

  .intro-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .sharing-row {
    display: grid;
  }

  .sharing-buttons {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 560px) {
  .brand img {
    height: 46px;
  }

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

  .main-nav {
    inset-top: 71px;
    min-height: calc(100vh - 71px);
  }

  .hero {
    min-height: 690px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(16, 33, 59, 0.58), rgba(16, 33, 59, 0.96));
  }

  .media-frame,
  .map-visual {
    min-height: 300px;
  }
}
