/* --- Variables --- */
:root {
  --grey-50: #f7f7f7;
  --grey-100: #ebebeb;
  --grey-200: #d4d4d4;
  --grey-300: #b0b0b0;
  --grey-400: #888888;
  --grey-500: #666666;
  --grey-600: #4a4a4a;
  --grey-700: #3d3d3d;
  --grey-800: #2a2a2a;
  --grey-900: #1a1a1a;

  --bg-base: #202020;
  --bg-elevated: #2a2a2a;
  --bg-surface: #333333;
  --bg-card: #2c2c2c;
  --bg-muted: #252525;

  --accent: #b8860b;
  --accent-hover: #d4a017;
  --accent-muted: rgba(184, 134, 11, 0.22);
  --accent-border: rgba(184, 134, 11, 0.4);

  --text-primary: #e4e4e4;
  --text-muted: #9a9a9a;
  --text-heading: #f2f2f2;
  --text-on-dark: #ffffff;

  --border-subtle: #3a3a3a;
  --border-medium: #454545;

  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;

  --max-width: 1100px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-nav: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-nav-stuck: 0 8px 32px rgba(0, 0, 0, 0.45);

  --hero-height: clamp(380px, 48vh, 520px);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-3xl);
}

.section__heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

.section__heading--small {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: var(--hero-height);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(32, 32, 32, 0.5) 0%,
    rgba(32, 32, 32, 0.42) 22%,
    rgba(32, 32, 32, 0.28) 40%,
    rgba(32, 32, 32, 0.12) 58%,
    transparent 78%
  );
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(32, 32, 32, 0.35));
  pointer-events: none;
}

.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: var(--space-2xl) var(--space-xl);
  padding-bottom: calc(var(--space-2xl) + 1.5rem);
  z-index: 1;
}

.lang-switcher {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(20, 20, 20, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@supports not (backdrop-filter: blur(12px)) {
  .lang-switcher {
    background: rgba(20, 20, 20, 0.88);
  }
}

.lang-switcher__btn {
  padding: var(--space-xs) 0.375rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease;
}

.lang-switcher__btn:hover {
  color: #ffffff;
}

.lang-switcher__btn--active {
  color: var(--accent-hover);
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-switcher__sep {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.hero__name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 1rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  margin-top: -2rem;
  padding-inline: var(--space-md);
}

.navbar__shell {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(38, 38, 38, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
}

@supports not (backdrop-filter: blur(12px)) {
  .navbar__shell {
    background: rgba(38, 38, 38, 0.95);
  }
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.navbar__link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar__link:hover {
  color: var(--text-heading);
  background-color: rgba(255, 255, 255, 0.06);
}

.navbar__link--active {
  color: var(--text-heading);
}

.navbar__link--active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 2px auto 0;
  border-radius: 50%;
  background-color: var(--accent);
}

.navbar__link--contact {
  color: #1a1408;
  font-weight: 600;
  background-color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: var(--space-xs);
}

.navbar__link--contact:hover {
  color: #1a1408;
  background-color: var(--accent-hover);
}

.navbar__link--contact.navbar__link--active {
  background-color: var(--accent-hover);
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.35);
}

.navbar__link--contact.navbar__link--active::after {
  display: none;
}

/* --- Mobile nav toggle (hidden on desktop) --- */
.mobile-nav-toggle {
  display: none;
}

/* --- Intro --- */
.section--intro {
  padding-top: calc(var(--space-3xl) + 1rem);
  padding-bottom: var(--space-2xl);
}

.intro__text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-elevated);
}

.service-card__marker {
  width: 24px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- References / Carousel --- */

.carousel {
  --carousel-gap: 1rem;
}

.carousel__viewport {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.carousel__track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--carousel-gap);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__track--no-transition {
  transition: none;
}

.carousel__slide {
  flex: 0 0 auto;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  opacity: 0.42;
  transform: scale(0.94);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
}

.carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--border-medium);
}

.carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.carousel__slide.is-active img {
  cursor: zoom-in;
}

.carousel__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.carousel__arrow:hover {
  color: var(--accent-hover);
  border-color: var(--accent-border);
  background: var(--bg-elevated);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel__caption {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-medium);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot:hover {
  background: var(--grey-400);
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.15);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

@supports not (backdrop-filter: blur(10px)) {
  .lightbox {
    background: rgba(12, 12, 12, 0.92);
  }
}

/* --- Other Services --- */
.section--other {
  padding-block: var(--space-2xl);
}

.other-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 720px;
}

.other-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.other-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.other-card__title {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Contact --- */
.contact-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.contact-block__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  margin-bottom: var(--space-xs);
}

.contact-block__value {
  font-size: 1.0625rem;
  color: var(--text-heading);
}

.contact-block__value--phone {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

a.contact-block__value:hover {
  color: var(--accent-hover);
}

.contact-block__social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent-border);
}

/* --- Footer --- */
.footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
}

.footer p {
  font-size: 0.8125rem;
  color: var(--grey-500);
  text-align: center;
}

/* --- Responsive (baseline) --- */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --hero-height: clamp(280px, 40vh, 400px);
  }

  .container {
    padding-inline: var(--space-lg);
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .navbar__shell {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    width: min(100%, 19.5rem);
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar__list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.125rem;
    width: 100%;
    min-height: 3.25rem;
    box-sizing: border-box;
    padding: 0.3125rem 0.5rem;
    background: rgba(38, 38, 38, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-nav);
  }

  @supports not (backdrop-filter: blur(12px)) {
    .navbar__list {
      background: rgba(38, 38, 38, 0.95);
    }
  }

  .navbar__list > li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
  }

  .navbar__shell .navbar__list .navbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 2.625rem;
    padding: 0.25rem 0.3125rem;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  .navbar__shell .navbar__link--contact {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    margin-left: 0;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.8125rem;
    text-align: center;
  }

  .navbar {
    transition:
      opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.28s;
  }

  body.mobile-nav--hero-hidden .navbar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
  }

  body.mobile-nav--hero-visible .navbar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: var(--space-md);
    right: var(--space-lg);
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.88) translateY(-0.35rem);
    transition:
      opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.28s;
  }

  body.mobile-nav--hero-hidden .mobile-nav-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .mobile-nav-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(38, 38, 38, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-nav);
    color: var(--text-heading);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  @supports not (backdrop-filter: blur(12px)) {
    .mobile-nav-toggle__btn {
      background: rgba(38, 38, 38, 0.95);
    }
  }

  .mobile-nav-toggle__btn:hover {
    background: rgba(48, 48, 48, 0.9);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .mobile-nav-toggle__btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .mobile-nav-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    width: 1rem;
    height: 1rem;
  }

  .mobile-nav-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .mobile-nav-toggle__btn[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(1) {
    transform: translateY(0.44rem) rotate(45deg);
  }

  .mobile-nav-toggle__btn[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-nav-toggle__btn[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(3) {
    transform: translateY(-0.44rem) rotate(-45deg);
  }

  .mobile-nav-panel {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    min-width: 13.75rem;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: rgba(38, 38, 38, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.625rem;
    box-shadow: var(--shadow-nav);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem) scale(0.96);
    transform-origin: top right;
    transition:
      opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0.24s;
  }

  @supports not (backdrop-filter: blur(12px)) {
    .mobile-nav-panel {
      background: rgba(38, 38, 38, 0.95);
    }
  }

  .mobile-nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .mobile-nav-panel__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav-panel__list > li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .mobile-nav-panel .navbar__link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .mobile-nav-panel .navbar__link--active::after {
    display: none;
  }

  .mobile-nav-panel .navbar__link--contact {
    width: 86%;
    max-width: 100%;
    margin-inline: auto;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    text-align: center;
  }

  @media (prefers-reduced-motion: reduce) {
    .navbar,
    .mobile-nav-toggle,
    .mobile-nav-panel,
    .mobile-nav-toggle__line {
      transition: none;
    }
  }

  .hero__content {
    padding: var(--space-xl) var(--space-lg);
    padding-bottom: calc(var(--space-xl) + 1rem);
  }

  .lang-switcher {
    top: var(--space-md);
    right: var(--space-lg);
  }

  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(32, 32, 32, 0.5) 0%,
      rgba(32, 32, 32, 0.32) 35%,
      rgba(32, 32, 32, 0.12) 60%,
      transparent 100%
    );
  }

  .hero__overlay::after {
    height: 2rem;
  }

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

  .carousel__arrow {
    width: 2.25rem;
    height: 2.25rem;
  }

  .other-cards {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .contact-block {
    grid-template-columns: 1fr;
    padding: var(--space-xl);
  }

  .intro__text {
    font-size: 1rem;
  }
}
