/* ══════════════════════════════════════════════════
   WMR — Componenti riutilizzabili
   Bottoni, label, sezioni, card, nav
   ══════════════════════════════════════════════════ */

/* ── BOTTONI ── */
.btn-primary {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 20px 48px;
  border-radius: 10px;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 32px var(--accent-glow);
}
/* Previeni stretch full-width in contesti flex column */
.btn-primary { align-self: flex-start; }
.btn-primary.btn-xl {
  padding: 22px 56px;
  font-size: 12px;
  text-align: center;
  align-self: auto; /* btn-xl in CTA sections può restare centrato */
}

/* Secondary button — outline variant */
.btn-secondary {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 20px 48px;
  border-radius: 10px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary.btn-xl {
  padding: 22px 56px;
  font-size: 12px;
  text-align: center;
}

.btn-ghost {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}
.btn-ghost::after {
  content: '\2192';
  font-size: 14px;
}
.btn-ghost:hover { color: var(--white); }

/* ── LABEL DI SEZIONE ── */
.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ── HEADER DI SEZIONE ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
}

.section-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.section-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── NAV DESKTOP ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  height: var(--nav-height);
  background: rgba(13,13,13,0.98);
  backdrop-filter: none;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}
.nav-chevron {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(22,22,22,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(8px);
  z-index: 110;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(123,47,255,0.08);
  padding-left: 28px;
}
.nav-dropdown-menu a:first-child {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 12px;
}
.nav-dropdown-menu a:first-child:hover {
  color: var(--white);
}

.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 10px;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ── LANG SWITCHER ── */
.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-right: 24px;
}
.lang-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  padding: 7px 14px;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--accent);
  color: var(--white);
  border-radius: 2px;
}
.lang-btn:not(.active):hover { color: var(--white); }

/* ── CART BUTTON ── */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 10px;
  transition: all var(--transition);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-count {
  background: var(--accent);
  color: var(--white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(22,22,22,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
}
.mnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--transition);
}
.mnav-item.active,
.mnav-item:hover { color: var(--accent); }
.mnav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.mnav-icon svg { display: block; }

/* ── STAT BAR ── */
.stat {
  flex: 1;
  padding: 28px var(--page-pad);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--white);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── SERVICE CARD ── */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.service-card.large { grid-row: span 2; aspect-ratio: 4/5; }
.service-card.small { /* height driven by grid row — no aspect-ratio */ }

.service-card-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
  transition: background 0.3s;
}
.service-card:hover .service-card-inner {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 60%, rgba(123,79,255,0.1) 100%);
}

.card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease-out);
}
.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card:hover .card-bg { transform: scale(1.04); }

.service-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.service-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}
.service-card.large .service-name { font-size: 52px; }
.service-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245,245,245,0.55);
  max-width: 320px;
}
.service-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  transition: all var(--transition);
}
.service-card:hover .service-arrow {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── PORTFOLIO ITEM ── */
a.portfolio-item { text-decoration: none; cursor: pointer; }
.portfolio-item {
  flex: 0 0 400px;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px 30px rgba(10,10,10,0.7);
  pointer-events: none;
  z-index: 1;
}
.portfolio-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out);
}
.portfolio-item:hover .portfolio-item-bg { transform: scale(1.05); }
.portfolio-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.3s;
}
.portfolio-item:hover .portfolio-item-info { transform: translateY(0); }
.pi-category {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.pi-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--white);
}
.pi-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── BACK TO TOP (globale) ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 20px rgba(123,47,255,0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 28px var(--accent-glow);
}
@media (max-width: 768px) {
  .back-to-top { bottom: 80px; right: 16px; width: 42px; height: 42px; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 11px; }
  .stat { gap: 12px; padding: 20px var(--page-pad-mobile); }
}

/* ── ANIMAZIONI ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeup 0.8s var(--ease-out) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

@keyframes fadeup {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── DESKTOP WIDE — nav con più respiro ── */
@media (min-width: 1440px) {
  .nav { padding: 0 8vw; }
}
@media (min-width: 1920px) {
  .nav { padding: 0 12vw; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 var(--page-pad-mobile); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-nav { display: block; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stat {
    padding: 16px var(--page-pad-mobile);
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Services carousel — tutte le card stessa dimensione */
  .service-card,
  .service-card.large,
  .service-card.small {
    flex: 0 0 260px;
    aspect-ratio: 3/4;
    grid-row: unset;
    scroll-snap-align: start;
  }
  .service-card-inner { padding: 20px; }
  .service-name { font-size: 22px; }
  .service-card.large .service-name { font-size: 28px; }

  .portfolio-item { flex: 0 0 280px; }
}

/* ── PAGE HERO — WATERMARK LOGO ── */
/* Cerchio WMR nel bg della prima riga su tutte le pagine con .page-hero */
@keyframes wmr-float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50%       { transform: translateY(calc(-50% - 12px)) rotate(3deg); }
}

.page-hero-watermark {
  position: absolute;
  right: -130px;
  top: 50%;
  transform: translateY(-50%);
  width: 850px;
  height: 850px;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: wmr-float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .page-hero-watermark {
    width: 320px;
    height: 320px;
    right: -50px;
    opacity: 0.09;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-watermark {
    animation: none;
  }
}

/* ── CTA section — image overlay (Overlay 25%, replicates Photoshop) ── */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/wmr-cta-bg.webp');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .cta-section::after {
    background-image: url('/assets/images/wmr-cta-bg-mobile.webp');
  }
}

/* ════════════════════════════════════════════════════
   QUOTE MODAL — Focus-mode offerte form
   ════════════════════════════════════════════════════ */

/* Block body scroll when modal is open */
body.qm-open { overflow: hidden; }

/* ── Overlay ── */
#wmr-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
#wmr-quote-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ── Backdrop ── */
.qm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6,6,6,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Modal card ── */
.qm-modal {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(123,47,255,0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 44px 44px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123,47,255,0.3) transparent;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(123,47,255,0.1);
}
#wmr-quote-overlay.open .qm-modal {
  transform: translateY(0) scale(1);
}

/* ── Header ── */
.qm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.qm-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.qm-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
}
.qm-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
}
.qm-close:hover {
  background: rgba(123,47,255,0.15);
  border-color: rgba(123,47,255,0.4);
  color: var(--white);
}

/* ── Form layout ── */
.qm-form { display: flex; flex-direction: column; gap: 16px; }

.qm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qm-group { display: flex; flex-direction: column; gap: 6px; }
.qm-group-full { grid-column: 1 / -1; }

.qm-group label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.qm-group input,
.qm-group select,
.qm-group textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.qm-group input:focus,
.qm-group select:focus,
.qm-group textarea:focus {
  border-color: rgba(123,47,255,0.6);
  background: rgba(123,47,255,0.06);
}
.qm-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.qm-group select option { background: #1a1a1a; color: var(--white); }
.qm-group textarea { resize: vertical; min-height: 100px; }

/* Error state */
.qm-field-error {
  border-color: rgba(255, 60, 60, 0.6) !important;
  background: rgba(255, 60, 60, 0.05) !important;
}

/* Submit button */
.qm-submit { width: 100%; margin-top: 8px; }

/* ── Thank You state ── */
.qm-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 16px;
  gap: 16px;
}
.qm-success-logo {
  margin-bottom: 8px;
  animation: qm-check-pop 0.4s var(--ease-out) both;
}
.qm-success-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.qm-success-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(123,47,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qm-check-pop 0.5s var(--ease-out) both;
}
@keyframes qm-check-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.qm-success-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  color: var(--white);
  letter-spacing: 0.04em;
}
.qm-success-msg {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(245,245,245,0.65);
  max-width: 340px;
}
.qm-close-success { margin-top: 8px; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .qm-modal { padding: 28px 20px 32px; border-radius: 12px 12px 0 0; }
  #wmr-quote-overlay { align-items: flex-end; padding: 0; }
  .qm-form-row { grid-template-columns: 1fr; }
  .qm-title { font-size: 36px; }
}

/* ════════════════════════════════════════════════════
   SOCIAL SIDEBAR — Floating vertical bar (desktop only)
   ════════════════════════════════════════════════════ */

#wmr-social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Slide in from right */
  animation: social-slide-in 0.6s 1s var(--ease-out) both;
}

@keyframes social-slide-in {
  from { transform: translateY(-50%) translateX(100%); opacity: 0; }
  to   { transform: translateY(-50%) translateX(0);   opacity: 1; }
}

.wmr-social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(245,245,245,0.45);
  background: rgba(14,14,14,0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-right: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: color 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out),
              width 0.25s var(--ease-out);
}

/* Rounded corners: top icon gets top-left radius, bottom gets bottom-left */
.wmr-social-btn:first-child { border-radius: 8px 0 0 0; }
.wmr-social-btn:last-child  { border-radius: 0 0 0 8px; }

.wmr-social-btn:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(-4px);
}

/* Tooltip */
.wmr-social-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14,14,14,0.92);
  border: 1px solid rgba(123,47,255,0.3);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(4px);
}
.wmr-social-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Hidden on mobile — mobile nav already handles social */
@media (max-width: 768px) {
  #wmr-social-sidebar { display: none; }
}

/* ════════════════════════════════════════════════════
   FOOTER — shared component styles
   Centralized here so every page gets them via components.css
   ════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  padding: 80px var(--page-pad) 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { display: inline-flex; margin-bottom: 20px; }
.footer-brand .nav-logo img { height: 40px; }
.footer-brand p { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 280px; }
.footer-actions { display: flex; gap: 24px; margin-top: 20px; }
.footer-action-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; color: var(--muted); transition: color var(--transition); }
.footer-action-link:hover { color: var(--accent); }
.footer-action-link svg { opacity: 0.5; transition: opacity var(--transition); }
.footer-action-link:hover svg { opacity: 1; }
.footer-col { border-left: 1px solid var(--border); padding-left: 40px; }
.footer-legal { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 300; color: rgba(245,245,245,0.3); padding: 20px 0 0; margin-bottom: 24px; flex-wrap: wrap; }
.footer-legal-sep { opacity: 0.3; }
.footer-col h4 { font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; font-weight: 300; color: var(--muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-frd { font-size: 12px; color: var(--muted); }
.footer-frd a { color: var(--accent); }
.footer-frd a:hover { text-decoration: underline; }
.footer-legal-links { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.footer-legal-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--white); }
.footer-cookie-btn { background: none; border: none; padding: 0; cursor: pointer; font-size: 11px; color: var(--muted); font-family: inherit; transition: color 0.2s; }
.footer-cookie-btn:hover { color: var(--white); }

/* Footer responsive */
@media (min-width: 1440px) { .footer { padding: 80px 8vw 40px; } }
@media (min-width: 1920px) { .footer { padding: 80px 12vw 40px; } }
@media (max-width: 768px) {
  .footer { padding: 60px var(--page-pad-mobile) calc(80px + env(safe-area-inset-bottom, 0px)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
  .footer-col:last-child { grid-column: span 2; }
  .footer-actions { flex-direction: column; gap: 12px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-legal-sep { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

