:root {
  --red: #b91c2b;
  --red-dark: #841521;
  --blue: #163d77;
  --blue-dark: #071a33;
  --blue-soft: #e8effa;
  --white: #ffffff;
  --ink: #111827;
  --muted: #52606f;
  --line: rgba(255, 255, 255, 0.28);
  --panel: rgba(255, 255, 255, 0.94);
  --shadow: 0 24px 80px rgba(5, 20, 45, 0.32);
  --content-max: 1180px;
  --page-gutter: clamp(10px, 2vw, 24px);
  --header-height: 80px;
  --panel-radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(3, 11, 25, 0.52), rgba(3, 11, 25, 0.76)),
    url("../img/flag_sky.png") center / cover fixed no-repeat;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 4.7vw + 0.25rem, 5rem);
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 3.25rem);
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.25rem);
  font-weight: 800;
}

p {
  margin: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(var(--page-gutter), calc((100% - var(--content-max)) / 2 + var(--page-gutter)));
  color: var(--white);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 18, 40, 0.84);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: clamp(42px, 4vw, 54px);
  max-width: min(360px, 52vw);
  object-fit: contain;
}

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 11px;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: none;
  padding: 0;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

main,
.site-footer {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--content-max));
  margin-inline: auto;
}

.panel-shell,
.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow);
}

/* Full-height opening section. It may grow taller when content needs more room. */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  margin-bottom: clamp(18px, 2vw, 28px);
  padding:
    calc(var(--header-height) + clamp(20px, 4vh, 44px))
    clamp(18px, 3vw, 38px)
    clamp(28px, 5vh, 56px);
  background: linear-gradient(135deg, rgba(7, 26, 51, 0.74), rgba(22, 61, 119, 0.4));
}

.hero-frame,
.hero-artwork,
.section-heading,
.about-copy,
.service-area > div {
  min-width: 0;
}

.hero-frame {
  max-width: 780px;
  color: var(--white);
}

.hero-label,
.kicker {
  margin: 0 0 12px;
  font-size: clamp(0.72rem, 0.25vw + 0.67rem, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-label {
  color: #ffccd3;
}

.kicker {
  color: var(--red);
}

.hero-copy {
  max-width: 62ch;
  margin-top: clamp(16px, 2.4vh, 24px);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.8vw + 0.78rem, 1.3rem);
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3.5vh, 34px);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--red-dark);
}

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

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

.hero-location {
  margin-top: clamp(18px, 3vh, 28px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.88rem, 0.25vw + 0.82rem, 1rem);
  font-weight: 600;
}

.hero-artwork {
  width: min(100%, 460px);
  height: clamp(340px, 66svh, 620px);
  max-height: calc(100svh - var(--header-height) - 48px);
  justify-self: end;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

.hero-image-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.content-panel {
  margin-block: clamp(18px, 2vw, 28px);
  padding: clamp(24px, 5vw, 56px);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.section-heading p:not(.kicker) {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 0.5vw + 0.88rem, 1.125rem);
}

.seo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  align-items: end;
  gap: clamp(22px, 4vw, 44px);
}

.contact-actions {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.contact-actions a,
.seo-links a {
  padding: 12px 14px;
  color: var(--white);
  border-radius: 7px;
  background: var(--blue);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.contact-actions a:hover,
.contact-actions a:focus-visible,
.seo-links a:hover,
.seo-links a:focus-visible {
  background: var(--red);
}

.audience-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.audience-grid article,
.process-grid li {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: var(--white);
}

.audience-grid p,
.process-grid p,
.about-copy p,
.service-area p {
  margin-top: 12px;
  color: var(--muted);
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.sticky-heading {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.service-list,
.difference-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-list div,
.difference-grid span {
  min-width: 0;
  padding: 16px;
  color: var(--blue-dark);
  border: 1px solid #d7e2f2;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--blue-soft));
  font-weight: 800;
  line-height: 1.4;
}

.process-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--red);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.difference-grid {
  margin-top: 26px;
}

.service-area {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 44px);
  color: var(--white);
  background: rgba(7, 26, 51, 0.9);
}

.service-area h2,
.service-area p,
.service-area address {
  color: var(--white);
}

.service-area a {
  color: var(--white);
  font-weight: 800;
}

address {
  margin-top: 18px;
  font-style: normal;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 800;
}

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

.quote-panel {
  margin-bottom: 42px;
}

.quote-form {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: var(--white);
}

.static-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.required-mark {
  color: var(--red);
  font-weight: 800;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-field,
.form-field-wide {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-size: 0.8125rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  border: 1px solid #c7d2e3;
  border-radius: 6px;
  outline: none;
  background: #fbfdff;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 61, 119, 0.16);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--red);
}

.field-error {
  min-height: 20px;
  margin-top: 6px;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
}

.form-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  color: var(--red-dark);
  border: 1px solid #f3b7c0;
  border-radius: 8px;
  background: #fff0f2;
  font-weight: 700;
}

.site-footer {
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: rgba(5, 18, 40, 0.8);
  text-align: center;
}

.site-footer p + p {
  margin-top: 14px;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.seo-links a {
  font-size: 0.8125rem;
}

.site-credit {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
}

.site-credit a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: #ffccd3;
}

.response-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 36px;
}

.thank-you-panel {
  max-width: 780px;
}

.thank-you-panel p:not(.kicker) {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.2rem);
}

.response-errors {
  margin: 0 0 28px;
  padding: 16px 18px 16px 36px;
  color: var(--red-dark);
  border: 1px solid #f3b7c0;
  border-radius: 8px;
  background: #fff0f2;
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.content-panel :focus-visible,
.quote-form :focus-visible {
  outline-color: rgba(22, 61, 119, 0.65);
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100svh - var(--header-height) - 16px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: rgba(5, 18, 40, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }

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

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

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(24px, 4vh, 38px);
  }

  .hero-frame {
    max-width: 760px;
  }

  h1 {
    max-width: 16ch;
  }

  .hero-artwork {
    width: 100%;
    max-width: 760px;
    height: auto;
    max-height: none;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .hero-image-card {
    aspect-ratio: 4 / 3;
  }

  .split-panel,
  .service-area,
  .seo-intro {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .seo-intro {
    align-items: start;
  }

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

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
    --page-gutter: 10px;
  }

  body {
    background-attachment: scroll;
  }

  .site-header {
    gap: 12px;
    padding-block: 9px;
  }

  .brand-logo {
    height: 44px;
    max-width: 67vw;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding:
      calc(var(--header-height) + 24px)
      clamp(14px, 4vw, 22px)
      30px;
  }

  h1 {
    max-width: 15ch;
    font-size: clamp(2.2rem, 10.5vw, 3.6rem);
  }

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

  .content-panel {
    padding: clamp(22px, 6vw, 30px);
  }

  .section-heading p:not(.kicker) {
    font-size: 1rem;
  }

  .service-list,
  .difference-grid,
  .form-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .hero {
    align-content: start;
  }

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

  .button {
    width: 100%;
  }

  .hero-artwork {
    gap: 8px;
  }

  .hero-image-card {
    border-radius: 10px;
  }

  .hero-image-card span {
    left: 8px;
    bottom: 8px;
    padding: 5px 8px;
    font-size: 0.66rem;
  }

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

  .audience-grid article,
  .process-grid li {
    padding: 20px;
  }

  .site-footer {
    font-size: 0.9rem;
  }
}

@media (max-height: 620px) and (min-width: 861px) {
  .hero {
    gap: 24px;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 20px;
  }

  h1 {
    font-size: clamp(2.3rem, 5.6vh + 0.7rem, 3.8rem);
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 1rem;
  }

  .button-row {
    margin-top: 18px;
  }

  .hero-location {
    margin-top: 14px;
  }
}

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

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