:root {
  --blue: #003e8a;
  --blue-2: #062b5f;
  --blue-soft: #eaf2ff;
  --orange: #ff4a12;
  --orange-2: #f45b1a;
  --grey: #f5f7fa;
  --grey-2: #eef2f7;
  --border: #e1e7ef;
  --text: #102033;
  --muted: #66758a;
  --white: #ffffff;
  --shadow: 0 16px 50px rgba(6, 43, 95, 0.1);
  --shadow-soft: 0 10px 30px rgba(6, 43, 95, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 10px max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(225, 231, 239, 0.85);
  box-shadow: 0 8px 32px rgba(6, 43, 95, 0.06);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  width: 118px;
  height: 58px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--blue-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button:focus-visible,
.menu-toggle:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 74, 18, 0.24);
  outline-offset: 2px;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 12px 28px rgba(255, 74, 18, 0.22);
}

.button-primary:hover {
  box-shadow: 0 14px 34px rgba(255, 74, 18, 0.28);
}

.button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.button-secondary:hover {
  background: var(--blue-soft);
}

.button-outline-orange {
  color: var(--orange);
  background: var(--white);
  border-color: rgba(255, 74, 18, 0.75);
}

.button-outline-orange:hover {
  background: #fff4ef;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 62, 138, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(6, 43, 95, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero {
  min-height: min(760px, calc(100svh - 20px));
  padding: calc(var(--header-height) + 52px) 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.72) 100%),
    url("./public/assets/nm-solbat/05_backgrounds/nm-solbat-background-architectural-light-grey-blue-orange.png") center / cover;
  opacity: 0.78;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 54px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--blue-2);
  font-size: clamp(2.65rem, 4.65vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy h1 .accent,
.section-heading h2 span,
.about-copy h2 span {
  color: var(--orange);
}

.title-line {
  display: inline;
}

.hero-subtitle {
  max-width: 610px;
  margin: 26px 0 0;
  color: #33445a;
  font-size: clamp(1.05rem, 1.35vw, 1.26rem);
  line-height: 1.65;
}

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

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 42px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.trust-list li {
  min-height: 78px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--blue-2);
  border-right: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.trust-list li:last-child {
  border-right: 0;
}

.mini-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 0 0 0 92px;
  background: var(--white);
  box-shadow: var(--shadow);
  clip-path: polygon(11% 0, 100% 0, 100% 92%, 86% 100%, 0 100%, 0 16%);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-media::before {
  top: 0;
  left: 4%;
  width: 30%;
  height: 26%;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 64% 100%, 0 100%);
}

.hero-media::after {
  right: -10%;
  bottom: -10%;
  width: 46%;
  height: 52%;
  background: var(--orange);
  clip-path: polygon(68% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 52% 50%;
}

.services-section,
.gallery-section {
  padding: 76px 0 82px;
  background: var(--white);
}

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

.section-heading h2,
.about-copy h2 {
  margin: 0;
  color: var(--blue-2);
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-heading p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.service-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 62, 138, 0.2);
  box-shadow: 0 20px 48px rgba(6, 43, 95, 0.12);
}

.icon-shell {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.icon-shell svg {
  width: 100%;
  height: 100%;
}

.icon-shell.small {
  width: 54px;
  height: 54px;
  margin: 0 0 14px;
}

.service-card h3,
.gallery-card h3 {
  margin: 0;
  color: var(--blue-2);
  font-size: 1.14rem;
  font-weight: 800;
}

.service-card p {
  flex: 1;
  margin: 12px 0 22px;
  color: #4b5b6f;
  font-size: 0.95rem;
}

.service-card a {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
}

.services-cta {
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--white), #f9fbff);
}

.services-cta p {
  margin: 0;
  color: var(--blue-2);
  font-weight: 800;
}

.why-section {
  padding: 76px 0;
  background: linear-gradient(180deg, var(--grey), #f8fafc);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 38px rgba(6, 43, 95, 0.05);
  overflow: hidden;
}

.why-item {
  min-height: 188px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  color: var(--blue-2);
  text-align: center;
}

.why-item:last-child {
  border-right: 0;
}

.why-item p {
  max-width: 210px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.gallery-card div {
  padding: 20px 22px 22px;
}

.gallery-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.about-section {
  padding: 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 56px;
  min-height: 520px;
}

.about-copy {
  padding: 76px 0;
}

.about-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #405168;
  font-size: 1.05rem;
}

.about-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--blue-2);
  font-weight: 800;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border: 3px solid var(--orange);
  border-radius: 999px;
}

.about-media {
  position: relative;
  min-height: 520px;
  align-self: stretch;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section {
  padding: 76px 0 84px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    url("./public/assets/nm-solbat/05_backgrounds/nm-solbat-background-architectural-light-grey-blue-orange.png") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.quick-contact {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.quick-contact a {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--blue-2);
  transition: background-color 180ms ease, transform 180ms ease;
}

.quick-contact a:hover {
  background: var(--white);
  transform: translateX(2px);
}

.quick-contact strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.quick-contact small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

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

label {
  color: var(--blue-2);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7e0eb;
  border-radius: 7px;
  background: var(--white);
  color: var(--text);
  font-size: 0.96rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 134px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 62, 138, 0.08);
}

.form-submit {
  grid-column: 1 / -1;
  width: min(100%, 440px);
}

.form-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  color: var(--white);
  background:
    linear-gradient(135deg, #003676, #003e8a 42%, #062b5f);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 34px;
  align-items: center;
}

.footer-brand {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 22px;
}

.footer-brand img {
  width: 90px;
  height: 62px;
  object-fit: cover;
  transform: scale(1.12);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12));
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-weight: 800;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: #ffb19a;
}

.footer-credit {
  display: grid;
  justify-items: start;
  gap: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.footer-credit a {
  color: #ff8a62;
  font-size: 1.08rem;
  font-weight: 800;
}

.floating-quote {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 18px;
  display: none;
  min-width: 74px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(255, 74, 18, 0.32);
  font-size: 0.9rem;
  font-weight: 800;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .site-header {
    gap: 18px;
  }

  .main-nav {
    gap: 18px;
  }

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

  .hero-media {
    min-height: 430px;
  }

  .hero-media img {
    min-height: 430px;
  }

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

  .why-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .why-item:nth-child(2n) {
    border-right: 0;
  }

  .why-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 360px;
    clip-path: none;
    border-radius: var(--radius);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding-inline: 16px;
  }

  .brand {
    width: 102px;
    height: 54px;
  }

  .header-cta,
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-open .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    justify-items: start;
    gap: 0;
    padding: 14px 16px 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 44px rgba(6, 43, 95, 0.12);
  }

  .nav-open .main-nav a {
    width: 100%;
    padding: 16px 6px;
    border-bottom: 1px solid var(--border);
  }

  .nav-open .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 2.7rem);
    line-height: 1.08;
  }

  .title-line {
    display: block;
  }

  .trust-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
  }

  .trust-list li {
    min-height: 104px;
    padding: 18px 6px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.76rem;
  }

  .trust-list li:nth-child(2n) {
    border-right: 0;
  }

  .trust-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .footer-credit {
    justify-items: start;
  }

  .floating-quote {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-actions,
  .services-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .services-cta .button,
  .center-action .button {
    width: 100%;
  }

  .hero-media {
    min-height: 310px;
    border-radius: 0 0 0 46px;
    clip-path: polygon(8% 0, 100% 0, 100% 92%, 88% 100%, 0 100%, 0 14%);
  }

  .hero-media img {
    min-height: 310px;
  }

  .services-section,
  .gallery-section,
  .why-section,
  .contact-section {
    padding-block: 58px;
  }

  .service-grid,
  .why-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .why-item,
  .why-item:nth-child(2n),
  .why-item:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .why-item:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: auto;
  }

  .about-copy {
    padding: 58px 0 0;
  }

  .about-grid {
    gap: 34px;
  }

  .quote-form {
    padding: 18px;
  }

  .form-submit {
    width: 100%;
  }

  .footer-brand {
    grid-template-columns: 78px 1fr;
  }
}
