/* =========================================================
   SickPrint 3D - style.css
   Minimalist, negru + accent auriu (#F4C430)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --border: #1e1e1e;
  --border-strong: #2c2c2c;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --accent: #f4c430;
  --accent-bright: #ffd94d;
  --accent-soft: rgba(244, 196, 48, 0.14);

  --radius: 16px;
  --container: 1140px;
  --header-h: 104px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; }

a { color: inherit; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.header__logo img {
  height: 80px;
  width: auto;
  transition: opacity 0.2s;
}
@media (max-width: 767px) {
  .header__logo img { height: 60px; }
}
.header__logo:hover img { opacity: 0.8; }

/* ---------- Nav ---------- */
.nav__list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.burger:hover { border-color: var(--accent); }
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -25%;
  left: 50%;
  width: min(900px, 130vw);
  height: min(900px, 130vw);
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(244, 196, 48, 0.11), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__logo {
  height: min(280px, 36svh);
  width: auto;
  filter: drop-shadow(0 0 44px rgba(244, 196, 48, 0.16));
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__text {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(244, 196, 48, 0.5);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.section--contact { border-top: 1px solid var(--border); }

.section__head {
  max-width: 620px;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  position: relative;
  padding-bottom: 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.section__lead {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Products carousel ---------- */
.section__head--row {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section__intro { max-width: 620px; }

/* ---------- Category filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.filter {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.filter:hover {
  color: var(--text);
  border-color: var(--accent);
}
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.carousel__nav {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease), opacity 0.25s var(--ease);
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.carousel__btn:disabled { opacity: 0.28; cursor: not-allowed; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel__dot:hover { background: var(--muted); }
.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

.card {
  flex: 0 0 auto;
  width: 80%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
@media (min-width: 640px) { .card { width: calc((100% - 1.5rem) / 2); } }
@media (min-width: 980px) { .card { width: calc((100% - 3rem) / 3); } }

@media (max-width: 639px) {
  .carousel__nav { display: none; }
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -24px rgba(244, 196, 48, 0.45);
}

.card[hidden] { display: none; }

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(circle at 50% 32%, #171717, #090909 78%);
  overflow: hidden;
}

.card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(244, 196, 48, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.25rem 1.25rem 1.4rem;
}
.card__title { font-size: 1.15rem; font-weight: 700; }
.card__desc {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn--card {
  width: 100%;
  margin-top: auto;
  border-radius: 10px;
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn--card:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.contact-aside {
  display: grid;
  gap: 1.25rem;
}

/* --- Formular --- */
.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-form.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft),
    0 24px 50px -26px rgba(244, 196, 48, 0.5);
}

.field { display: grid; gap: 0.5rem; }

.field__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field__input::placeholder { color: #6a6a6a; }
.field__input:hover { border-color: #3a3a3a; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input--area { resize: vertical; min-height: 130px; }

.field__error {
  font-size: 0.82rem;
  color: #ff6b6b;
}
.field__error:empty { display: none; }

.field.is-invalid .field__input { border-color: #ff6b6b; }
.field.is-invalid .field__input:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.contact-form__submit { width: 100%; margin-top: 0.25rem; }
.contact-form__submit[disabled] { opacity: 0.6; cursor: progress; }

.contact-form__status { font-size: 0.9rem; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-success { color: var(--accent); }
.contact-form__status.is-error { color: #ff6b6b; }

.contact-form__alt {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.contact-form__alt a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-form__alt a:hover { color: var(--accent); border-color: var(--accent); }

.hidden-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -26px rgba(244, 196, 48, 0.45);
}
.contact-card.is-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft),
    0 24px 50px -26px rgba(244, 196, 48, 0.5);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card__label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  font-weight: 600;
  word-break: break-word;
  transition: color 0.2s var(--ease);
}
.contact-card:hover .contact-card__value { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__logo { height: 52px; width: auto; opacity: 0.75; }
.footer__copy { color: var(--muted); font-size: 0.85rem; }
.footer__top {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__top:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 767px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    visibility: hidden;
    transform: translateY(-115%);
    transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .nav__link { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
