:root {
  color-scheme: light;
  --navy: #071a3a;
  --navy-soft: #193054;
  --blue: #0867e8;
  --cyan: #17bfe8;
  --magenta: #b700e8;
  --green: #11845a;
  --white: #ffffff;
  --soft: #f4f7fb;
  --line: #d8e0eb;
  --muted: #52627a;
  --shadow: 0 18px 44px rgba(7, 26, 58, 0.12);
  --shell: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(8, 103, 232, 0.38);
  outline-offset: 3px;
}

.sr-only {
  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 {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(216, 224, 235, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(7, 26, 58, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  width: 270px;
}

.brand img {
  width: 100%;
  height: auto;
}

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

.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
}

.menu-toggle svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  border-color: var(--blue);
  background: linear-gradient(115deg, var(--blue), #5142ef 55%, var(--magenta));
  color: var(--white);
  box-shadow: 0 12px 28px rgba(63, 62, 232, 0.22);
}

.button-primary:hover {
  box-shadow: 0 16px 34px rgba(63, 62, 232, 0.3);
}

.button-secondary {
  border-color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image: url("./assets/hotel-it-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero-fade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.97) 25%, rgba(255, 255, 255, 0.74) 42%, rgba(255, 255, 255, 0.08) 64%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: center;
  padding-block: 76px;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: 58px;
  font-weight: 790;
  line-height: 1.08;
}

.hero p {
  max-width: 620px;
  margin: 28px 0 0;
  color: #34445c;
  font-size: 21px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.section {
  padding-block: 96px;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading-wide {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 72px;
  align-items: end;
}

.section-heading h2,
.services-copy > h2,
.smart-title h2,
.contact-options h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}

.section-heading p,
.services-copy > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading-wide p {
  margin: 0;
}

.service-selector {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-selector button {
  position: relative;
  display: grid;
  min-height: 156px;
  place-items: center;
  gap: 14px;
  padding: 22px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.service-selector button:last-child {
  border-right: 0;
}

.service-selector button::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--magenta));
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.service-selector button:hover,
.service-selector button[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(8, 103, 232, 0.03), rgba(183, 0, 232, 0.06));
}

.service-selector button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.service-selector svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-selector span {
  max-width: 160px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 80px;
  align-items: end;
  padding: 48px 0 0;
}

.service-number {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.service-detail h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.service-detail p:not(.service-number) {
  max-width: 740px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
}

.service-detail li::before {
  position: absolute;
  top: 22px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  content: "";
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 88px;
  align-items: center;
}

.service-lines {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.service-lines article {
  position: relative;
  padding: 22px 0 22px 28px;
  border-bottom: 1px solid var(--line);
}

.service-lines article::before {
  position: absolute;
  top: 28px;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.service-lines h3 {
  margin: 0;
  font-size: 18px;
}

.service-lines p {
  margin: 6px 0 0;
  color: var(--muted);
}

.services-media {
  margin: 0;
}

.services-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.services-media figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.smart-hotel {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.smart-hotel::after {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -40px;
  width: 520px;
  height: 220px;
  background-image: linear-gradient(90deg, transparent 0 8%, rgba(8, 103, 232, 0.16) 8% 8.4%, transparent 8.4% 100%), linear-gradient(0deg, transparent 0 46%, rgba(183, 0, 232, 0.13) 46% 46.8%, transparent 46.8% 100%);
  content: "";
  opacity: 0.55;
  transform: skewX(-20deg);
}

.smart-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 96px;
}

.smart-copy .lead {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.45;
}

.smart-copy > p:not(.lead) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.smart-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.smart-points span {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.smart-points span:not(:first-child) {
  padding-left: 18px;
}

.smart-points span:last-child {
  border-right: 0;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 228px;
  padding: 0 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 21px;
  right: 18px;
  left: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(8, 103, 232, 0.12));
  content: "";
}

.process-list span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding-right: 12px;
  background: var(--soft);
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.process-list h3 {
  margin: 24px 0 0;
  font-size: 18px;
}

.process-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cost-note {
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 26, 58, 0.06);
  color: var(--navy-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 96px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.full {
  grid-column: 1 / -1;
}

.field label,
.project-type legend {
  color: var(--navy-soft);
  font-size: 14px;
  font-weight: 720;
}

.field label span {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #b9c6d8;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
}

.field input {
  min-height: 50px;
  padding: 10px 13px;
}

.field textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(8, 103, 232, 0.12);
}

.project-type {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  border: 0;
}

.project-type legend {
  width: 100%;
  margin-bottom: 2px;
}

.project-type label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.project-type input,
.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.consent {
  color: var(--muted);
  font-size: 13px;
}

.consent a {
  color: var(--blue);
}

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

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-form button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-status[data-state="pending"] {
  color: var(--muted);
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: #b42318;
}

.contact-options {
  align-self: start;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.contact-options h2 {
  margin-bottom: 28px;
  font-size: 30px;
}

.contact-options > a {
  display: grid;
  gap: 3px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-options > a:hover strong {
  color: var(--blue);
}

.contact-options span {
  color: var(--muted);
  font-size: 13px;
}

.contact-options strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  transition: color 180ms ease;
}

.contact-options small {
  color: var(--muted);
}

.site-footer {
  padding-block: 38px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer-layout {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-layout img {
  width: 250px;
}

.footer-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-layout nav {
  display: flex;
  gap: 24px;
}

.footer-layout a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding-inline: 24px;
  }

  .brand {
    width: 230px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav[data-open="true"] {
    display: grid;
  }

  .main-nav a {
    padding: 12px;
  }

  .header-cta {
    display: none;
  }

  .hero h1 {
    max-width: 600px;
    font-size: 48px;
  }

  .hero-fade {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 0.84) 51%, rgba(255, 255, 255, 0.2) 78%, rgba(255, 255, 255, 0) 100%);
  }

  .section-heading-wide,
  .services-layout,
  .smart-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-heading-wide {
    align-items: start;
  }

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

  .service-selector button:nth-child(3) {
    border-right: 0;
  }

  .service-selector button:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .services-media {
    max-width: 780px;
  }

  .contact-options {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-layout {
    grid-template-columns: 220px 1fr;
  }

  .footer-layout nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header {
    min-height: 70px;
    padding: 10px 16px;
  }

  .brand {
    width: 190px;
  }

  .hero,
  .hero-content {
    min-height: 660px;
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-fade {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 43%, rgba(255, 255, 255, 0.72) 66%, rgba(255, 255, 255, 0.08) 100%);
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 58px;
  }

  .hero h1 {
    max-width: 540px;
    font-size: 40px;
    line-height: 1.1;
  }

  .hero p {
    max-width: 540px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading h2,
  .services-copy > h2,
  .smart-title h2 {
    font-size: 32px;
  }

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

  .service-selector button,
  .service-selector button:nth-child(3) {
    min-height: 132px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .service-selector button:nth-child(-n + 2) {
    border-top: 0;
  }

  .service-selector button:nth-child(even) {
    border-right: 0;
  }

  .service-selector button:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .smart-points,
  .process-list,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .smart-points span,
  .smart-points span:not(:first-child) {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .smart-points span:last-child {
    border-bottom: 0;
  }

  .process-list {
    gap: 0;
  }

  .process-list li {
    min-height: 0;
    padding: 20px 0 26px;
  }

  .process-list li:not(:last-child)::after {
    display: none;
  }

  .process-list span {
    background: transparent;
  }

  .process-list h3 {
    margin-top: 6px;
  }

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

  .footer-layout {
    gap: 22px;
  }

  .footer-layout nav {
    grid-column: auto;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 164px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    display: grid;
  }

  .service-selector span {
    font-size: 13px;
  }

  .project-type {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
