﻿html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }
}

button[aria-label*="sunetul"],
button[aria-label*="ambient"],
button[title*="sunet"],
button[title*="ambient"] {
  display: none !important;
}

a[aria-label="WhatsApp"][title="WhatsApp"] {
  left: auto !important;
  right: calc(env(safe-area-inset-right) + 0.75rem) !important;
  bottom: calc(env(safe-area-inset-bottom) + 0.75rem) !important;
}

button[aria-label*="napoi"],
button[title*="napoi"] {
  left: auto !important;
  right: calc(env(safe-area-inset-right) + 0.75rem) !important;
  bottom: calc(env(safe-area-inset-bottom) + 7.25rem) !important;
}

button[aria-label^="Mod"],
button[title^="Mod"] {
  left: auto !important;
  right: calc(env(safe-area-inset-right) + 0.75rem) !important;
  bottom: calc(env(safe-area-inset-bottom) + 4rem) !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
}

button[aria-label^="Mod"] svg,
button[title^="Mod"] svg {
  width: 1rem !important;
  height: 1rem !important;
}

nav,
nav[data-scrolled],
nav::before,
nav::after,
nav > div {
  border: none !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.service-hint-boost {
  color: var(--color-brand-light) !important;
  opacity: 1 !important;
  font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

[data-theme="light"] .service-hint-boost {
  color: var(--color-brand-muted) !important;
}

#servicii .category-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
}

#servicii .category-tabs .category-tab {
  width: 100% !important;
  min-width: 0 !important;
}

#servicii .category-tabs .category-tab:last-child {
  grid-column: 1 / -1 !important;
}

@media (min-width: 768px) {
  #servicii .category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  #servicii .category-tabs .category-tab:last-child {
    grid-column: auto !important;
  }
}

@media (min-width: 1024px) {
  #servicii .category-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

.projects-gallery-viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.projects-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.projects-gallery-viewport,
.projects-gallery-viewport .project-card,
.projects-gallery-viewport .project-card img {
  touch-action: auto !important;
}

#proiecte .albo-portfolio-card__title {
  font-size: clamp(1.15rem, 1.35vw, 1.9rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#proiecte .albo-portfolio-card__hint {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-theme="light"] #proiecte .portfolio-heading button[aria-label^="Galeria"] {
  color: rgba(24, 24, 27, 0.82) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(232, 99, 10, 0.45) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] #proiecte .portfolio-heading button[aria-label^="Galeria"]:hover {
  color: rgb(232, 99, 10) !important;
  border-color: rgba(232, 99, 10, 0.72) !important;
}

#proiecte .portfolio-heading button[aria-label^="Galeria"].is-disabled {
  opacity: 0.38 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.albo-gdpr {
  margin-top: 0.9rem;
}

.albo-gdpr__label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
}

.albo-gdpr__checkbox {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  accent-color: rgb(232, 99, 10);
}

.albo-gdpr__error {
  min-height: 1.25rem;
  margin-top: 0.45rem;
  color: rgb(252, 165, 165);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.albo-gdpr__error.is-visible {
  opacity: 1;
}

[data-theme="light"] .albo-gdpr__label {
  color: rgba(24, 24, 27, 0.74);
}

.albo-recaptcha {
  margin-top: 0.9rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout;
}

.albo-recaptcha__widget {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 78px;
  overflow: hidden;
}

.albo-recaptcha__widget > div {
  display: block;
  width: 304px;
  height: 78px;
  transform-origin: top left;
}

.albo-recaptcha__error {
  min-height: 1.25rem;
  margin-top: 0.45rem;
  color: rgb(252, 165, 165);
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.albo-recaptcha__error.is-visible {
  opacity: 1;
}

[data-theme="light"] .albo-recaptcha__error {
  color: rgb(220, 38, 38);
}

body.albo-modal-open {
  overflow: hidden !important;
}

body.albo-gallery-open a[aria-label="WhatsApp"][title="WhatsApp"],
body.albo-gallery-open button[aria-label^="Mod"],
body.albo-gallery-open button[title^="Mod"],
body.albo-gallery-open button[aria-label*="napoi"],
body.albo-gallery-open button[title*="napoi"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

.albo-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: none;
  padding: 1rem;
}

.albo-gallery-modal.is-open {
  display: block;
}

.albo-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
}

.albo-gallery-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: transparent;
}

.albo-gallery-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(232, 99, 10, 0.35);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.82);
  color: rgb(232, 99, 10);
  font-size: 2rem;
  line-height: 1;
  z-index: 3;
}

.albo-gallery-modal__header {
  width: min(100%, 34rem);
  padding-right: 4.5rem;
}

.albo-gallery-modal__eyebrow {
  color: rgb(232, 99, 10);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.albo-gallery-modal__title {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.albo-gallery-modal__meta {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.4;
}

.albo-gallery-modal__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 0;
}

.albo-gallery-modal__frame {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-inline: 0.25rem;
}

.albo-gallery-modal__loading {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  text-align: center;
}

.albo-gallery-modal__image {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.albo-gallery-modal__nav {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(232, 99, 10, 0.3);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.82);
  color: rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  line-height: 1;
}

.albo-gallery-modal__nav.is-disabled,
.albo-gallery-modal__nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.albo-gallery-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  margin-top: 0.15rem;
}

.albo-gallery-modal__counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.albo-gallery-modal__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.albo-gallery-modal__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.albo-gallery-modal__dot.is-active {
  width: 1.55rem;
  background: rgb(232, 99, 10);
}

div[class*="fixed inset-0 z-[200]"] {
  overscroll-behavior: contain !important;
}

@media (max-width: 767px) {
  .albo-recaptcha__widget {
    transform-origin: top center;
  }

  #hero > .relative.z-20 {
    padding-bottom: 6.25rem !important;
  }

  #hero .scroll-indicator {
    bottom: 1rem !important;
    gap: 0.35rem !important;
  }

  #hero .scroll-indicator span {
    font-size: 0.58rem !important;
    line-height: 1 !important;
  }

  #hero .scroll-indicator > div {
    height: 2rem !important;
  }

  #proiecte .albo-portfolio-card__title {
    font-size: 1.05rem;
    -webkit-line-clamp: 5;
  }

  #servicii .category-tabs .category-tab:last-child {
    justify-content: center !important;
    text-align: center !important;
  }

  #servicii .category-tabs .category-tab:last-child > div {
    text-align: center !important;
  }

  a[aria-label="WhatsApp"][title="WhatsApp"],
  button[aria-label^="Mod"],
  button[title^="Mod"],
  button[aria-label*="napoi"],
  button[title*="napoi"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  a[aria-label="WhatsApp"][title="WhatsApp"] svg,
  button[aria-label^="Mod"] svg,
  button[title^="Mod"] svg,
  button[aria-label*="napoi"] svg,
  button[title*="napoi"] svg {
    width: 1rem !important;
    height: 1rem !important;
  }

  a[aria-label="WhatsApp"][title="WhatsApp"] {
    right: calc(env(safe-area-inset-right) + 0.75rem) !important;
    bottom: calc(env(safe-area-inset-bottom) + 0.75rem) !important;
  }

  button[aria-label^="Mod"],
  button[title^="Mod"] {
    right: calc(env(safe-area-inset-right) + 0.75rem) !important;
    bottom: calc(env(safe-area-inset-bottom) + 4rem) !important;
    transform: none !important;
    translate: none !important;
  }

  button[aria-label*="napoi"],
  button[title*="napoi"] {
    right: calc(env(safe-area-inset-right) + 0.75rem) !important;
    bottom: calc(env(safe-area-inset-bottom) + 7.25rem) !important;
  }

  .albo-gallery-modal {
    padding: 0.9rem;
  }

  .albo-gallery-modal__panel {
    justify-content: center;
    gap: 0.85rem;
    padding-top: max(3.5rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .albo-gallery-modal__close {
    top: 0.25rem;
    right: 0.25rem;
    width: 2.85rem;
    height: 2.85rem;
  }

  .albo-gallery-modal__header {
    width: 100%;
    padding-right: 4rem;
  }

  .albo-gallery-modal__stage {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .albo-gallery-modal__frame {
    padding-inline: 0;
  }

  .albo-gallery-modal__image {
    max-height: 50vh;
    border-radius: 0.9rem;
  }

  .albo-gallery-modal__nav {
    position: absolute;
    top: calc(50% - 1.1rem);
    transform: translateY(-50%);
    z-index: 2;
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.85rem;
    background: rgba(28, 32, 38, 0.88);
    border-color: rgba(232, 99, 10, 0.42);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .albo-gallery-modal__nav.is-prev {
    left: 1rem;
  }

  .albo-gallery-modal__nav.is-next {
    right: 1rem;
  }

  .albo-gallery-modal__counter {
    font-size: 0.95rem;
  }

  .albo-gdpr__label {
    font-size: 0.84rem;
    gap: 0.7rem;
  }
}
