/* ===== TOKENS AND BASE ===== */
:root {
  --petrol: #13435A;
  --petrol-deep: #0B2C3D;
  --gold: #D9A441;
  --gold-hover: #C28E2F;
  --offwhite: #F4F1EA;
  --white: #FFFFFF;
  --text: #1B2A33;
  --muted: #4A5C66;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 44, 61, 0.10);
  --header-h: 68px;
  --gap: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--offwhite);
  color: var(--text);
  overflow-x: clip;
}

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

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

h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.2;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  color: currentColor;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: var(--petrol);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
  left: 0;
}

/* ===== LAYOUT CLASSES ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
  scroll-margin-top: var(--header-h);
}

.section--off {
  background: var(--offwhite);
}

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

.section--dark {
  background: var(--petrol);
  color: var(--on-dark);
}

.section--dark .section__title {
  color: var(--white);
}

.section--dark .section__intro {
  color: var(--on-dark-muted);
}

.section__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: var(--petrol);
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 12px;
}

.section__intro {
  max-width: 640px;
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 17px;
}

.page-consulting .section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  background: var(--gold);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms, color 200ms, transform 200ms;
}

.btn--gold {
  background: var(--gold);
  color: var(--petrol);
}

.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--petrol);
  color: var(--petrol);
}

.btn--outline:hover {
  background: var(--petrol);
  color: var(--white);
}

.section--dark .btn--outline,
.hero .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.section--dark .btn--outline:hover,
.hero .btn--outline:hover {
  background: var(--white);
  color: var(--petrol);
}

.btn--small {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 14px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  height: var(--header-h);
  border-bottom: 1px solid rgba(19, 67, 90, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(11, 44, 61, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__logo.is-missing {
  display: none;
}

.brand__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: var(--petrol);
  font-size: 18px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--petrol);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(19, 67, 90, 0.10);
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: 250ms;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-nav__link {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 67, 90, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--petrol);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  height: 78vh;
  background: var(--petrol-deep);
  color: var(--white);
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(135deg, var(--petrol), var(--petrol-deep));
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 44, 61, 0.70);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  max-width: 760px;
  color: var(--white);
  margin: 0 0 16px;
}

.hero__text {
  font-size: clamp(17px, 2.4vw, 20px);
  max-width: 580px;
  color: var(--on-dark-muted);
  margin: 0 0 28px;
}

/* ===== STATS ===== */
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  color: var(--on-dark-muted);
  font-size: 17px;
}

/* ===== HOME SERVICES ===== */
.home-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 250ms;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__media {
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, var(--petrol), var(--petrol-deep));
}

.service-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.service-card__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--petrol);
}

.service-card__text {
  color: var(--muted);
  margin: 0;
}

.service-card__arrow {
  margin-top: auto;
  padding-top: 8px;
  color: var(--petrol);
  font-size: 26px;
  display: flex;
  justify-content: flex-end;
  transition: transform 200ms;
}

.service-card:hover .service-card__arrow {
  transform: translateX(6px);
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  --per-view: 1;
}

.carousel__viewport {
  overflow: hidden;
  padding: 8px 0 12px;
  touch-action: pan-y;
  cursor: grab;
}

.carousel.is-dragging .carousel__viewport {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  gap: var(--gap);
  transition: transform 450ms ease;
  will-change: transform;
  user-select: none;
}

.carousel.is-dragging .carousel__track {
  transition: none;
}

.carousel__track img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.carousel__slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.carousel[data-carousel="focus"] .carousel__slide {
  flex: 0 0 78%;
  transform: scale(0.88);
  opacity: 0.6;
  transition: transform 450ms ease, opacity 450ms ease;
}

.carousel[data-carousel="focus"] .carousel__slide.is-active {
  transform: scale(1);
  opacity: 1;
}

.carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--petrol);
  background: transparent;
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}

.carousel__btn:hover {
  background: var(--petrol);
  color: var(--white);
}

.section--dark .carousel__btn {
  border-color: var(--white);
  color: var(--white);
}

.section--dark .carousel__btn:hover {
  background: var(--white);
  color: var(--petrol);
}

/* ===== PROJECTS ===== */
.project-card {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.project-card img.is-missing {
  display: none;
}

/* ===== LEADERSHIP ===== */
.leader {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.leader__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--offwhite);
  margin: 0 auto;
}

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

.leader__photo img.is-missing {
  display: none;
}

.leader__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--petrol);
}

.leader__role {
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 14px;
  letter-spacing: 0.02em;
}

.leader__text {
  font-size: 18px;
  max-width: 520px;
  margin: 0;
}

/* ===== TESTIMONIALS ===== */
.t-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.t-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.t-card__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
}

.t-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 400ms;
}

.t-card__avatar img.is-loaded {
  opacity: 1;
}

.t-card__avatar img.is-missing {
  display: none;
}

.t-card__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--petrol);
  margin: 0;
}

.t-card__project {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.t-card__quote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== VISIT US ===== */
.visit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

ul.visit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

ul.visit__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

ul.visit__list li .icon {
  color: var(--petrol);
  font-size: 22px;
  margin-top: 2px;
}

ul.visit__list a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

ul.visit__list a:hover {
  text-decoration: underline;
}

.visit__map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  color: var(--text);
  text-decoration: none;
  transition: transform 250ms;
}

.visit__map:hover {
  transform: translateY(-4px);
}

.visit__map .icon {
  color: var(--petrol);
  font-size: 34px;
}

.visit__map h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--petrol);
  margin: 0;
}

.visit__map p {
  color: var(--muted);
  margin: 0;
}

/* ===== VISION AND MISSION ===== */
.vm-label {
  display: block;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.vm-label--gold {
  color: var(--gold);
}

.vm-vision {
  background: var(--offwhite);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0 0 32px;
}

.vm-vision__statement {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.3;
  color: var(--petrol);
  max-width: 820px;
}

ul.vm-levels {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.vm-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(19, 67, 90, 0.08);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  color: var(--text);
}

.vm-card__num {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.vm-card__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--petrol);
  margin: 0;
}

.vm-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  padding-top: 6px;
}

.vm-mission {
  background: var(--petrol);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}

.vm-mission::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

.vm-mission__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-dark);
  max-width: 760px;
}

/* ===== CONSTRUCTION AND CONSULTING CARDS ===== */
.build-card,
.advice-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--text);
}

.build-card .btn,
.advice-card .btn {
  margin-top: auto;
}

.build-card__num,
.advice-card__num {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.build-card__title,
.advice-card__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--petrol);
  margin: 0;
}

.build-card__text,
.advice-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  padding-top: 6px;
}

.page-construction .build-card {
  border-top: 6px solid var(--petrol);
  box-shadow: 0 10px 22px rgba(11, 44, 61, 0.16);
}

.page-consulting .advice-card {
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 16px rgba(11, 44, 61, 0.07);
  padding: 30px 28px;
}

/* ===== STEPS ===== */
ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: var(--petrol);
  color: var(--white);
}

.section--dark .step__num {
  background: var(--white);
  color: var(--petrol);
}

.step__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin: 6px 0 0;
  color: var(--petrol);
}

.section--dark .step__title {
  color: var(--white);
}

.step__text {
  margin: 0;
  color: var(--muted);
}

.section--dark .step__text {
  color: var(--on-dark-muted);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
}

.cta__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--petrol);
  margin: 0 0 12px;
}

.section--dark .cta__title {
  color: var(--white);
}

.cta__text {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}

.section--dark .cta__text {
  color: var(--on-dark-muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--petrol-deep);
  color: var(--on-dark);
  padding: 56px 0 28px;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.site-footer__brand img {
  width: 120px;
}

.site-footer__brand img.is-missing {
  display: none;
}

.site-footer__brand p {
  margin: 14px 0 0;
  color: var(--on-dark-muted);
}

.site-footer__heading {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin: 0 0 14px;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 20px;
  transition: background-color 200ms, border-color 200ms;
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: var(--on-dark-muted);
}

/* ===== 404 PAGE ===== */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.not-found__inner {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.not-found__title {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 48px);
  color: var(--petrol);
  margin: 0 0 12px;
}

.not-found__text {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 18px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 640px) {
  .carousel {
    --per-view: 2;
  }
  .home-services__grid,
  ol.steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand__name {
    font-size: 20px;
  }
}

@media (min-width: 700px) {
  .hero__overlay {
    background: linear-gradient(90deg, rgba(11, 44, 61, 0.85) 0%, rgba(11, 44, 61, 0.35) 100%);
  }
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .leader {
    grid-template-columns: minmax(0, 360px) 1fr;
    gap: 48px;
  }
  .leader__photo {
    margin: 0;
  }
  .visit {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
  }
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    height: 82vh;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 28px;
    background: none;
    border: 0;
    padding: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav__link {
    border: 0;
    padding: 6px 0;
  }
  .site-nav__link:hover {
    color: var(--petrol);
  }
  .carousel {
    --per-view: 3;
  }
  .carousel[data-carousel="focus"] .carousel__slide {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    transform: none;
    opacity: 1;
  }
  ol.steps {
    grid-template-columns: repeat(4, 1fr);
  }
  ul.vm-levels {
    grid-template-columns: repeat(3, 1fr);
  }
  .vm-vision {
    padding: 40px 44px;
  }
  .vm-mission {
    padding: 44px 48px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}