/* Stiluri comune pentru tema noua: mai rece, mai structurata, mai diferita */

:root {
  color-scheme: light;
}

html {
  scroll-padding-top: 6.25rem;
}

body {
  font-family: "Urbanist", sans-serif;
  background: #f4f8fa;
}

body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 12%, rgba(219, 229, 222, 0.78), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(220, 232, 236, 0.95), transparent 30%),
    radial-gradient(circle at 58% 84%, rgba(233, 217, 202, 0.72), transparent 26%),
    linear-gradient(180deg, #f4f8fa 0%, #eef4f5 58%, #f6fafb 100%);
}

body::after {
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(20, 37, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 37, 43, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 82%);
}

h1,
h2,
h3,
.font-serif {
  text-wrap: balance;
}

p,
li,
summary,
a {
  text-wrap: pretty;
}

::selection {
  background: rgba(104, 129, 138, 0.22);
  color: #14252b;
}

body.menu-open {
  overflow: hidden;
}

main[id],
section[id],
footer[id] {
  scroll-margin-top: 6.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.78);
  color: #2f5058;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 252, 252, 0.8) 100%);
  backdrop-filter: blur(16px);
}

.dark-panel {
  background:
    linear-gradient(135deg, rgba(15, 28, 33, 0.96) 0%, rgba(47, 80, 88, 0.94) 100%);
}

.cut-card {
  position: relative;
  overflow: hidden;
}

.cut-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  border-bottom-left-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(176, 129, 100, 0.18), rgba(220, 232, 236, 0.18));
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 1rem;
  padding: 0.95rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid rgba(20, 37, 43, 0.08);
  background: #14252b;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(20, 37, 43, 0.16);
}

.btn-primary:hover {
  background: #2f5058;
}

.btn-secondary {
  border: 1px solid rgba(20, 37, 43, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #14252b;
}

.btn-secondary:hover {
  border-color: rgba(47, 80, 88, 0.32);
  color: #2f5058;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 37, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.5rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(47, 80, 88, 0.86);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #b38164;
}

.image-frame img {
  transition: transform 0.9s ease;
}

.image-frame:hover img {
  transform: scale(1.035);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.gallery-slide {
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.72s ease,
    transform 1.15s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-dot {
  height: 0.7rem;
  width: 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.gallery-dot.is-active {
  transform: scale(1.16);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 255, 255, 0.98);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary {
  transition: background-color 0.22s ease;
}

.faq-item {
  overflow-anchor: none;
}

.faq-item .faq-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(20, 37, 43, 0.08);
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.25s ease;
}

.faq-item .faq-symbol svg {
  width: 1rem;
  height: 1rem;
}

.faq-item[open] .faq-symbol {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  body::after {
    opacity: 0.14;
    background-size: 84px 84px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
