/* ============================================================
   NORDSCHAFT — UI/UX styles (Tailwind complement)
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}

section[id] { scroll-margin-top: 6rem; }
::selection { background: #C49A3F; color: #0A1F44; }

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #f1f4fb; }
  ::-webkit-scrollbar-thumb { background: #0A1F44; border-radius: 8px; }
  ::-webkit-scrollbar-thumb:hover { background: #102a5e; }
}

/* ---------- Scroll progress bar (top) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #C49A3F 0%, #d4ad55 50%, #C49A3F 100%);
  width: 0%; z-index: 60; transition: width .15s linear;
  box-shadow: 0 0 8px rgba(196,154,63,0.6);
}

/* ---------- Header polish ---------- */
#site-header {
  transition: box-shadow .25s ease, background-color .25s ease;
}
#site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(10,31,68,0.25);
  background-color: rgba(255,255,255,0.96);
}
header nav a {
  position: relative;
  transition: color .2s ease;
}
header nav a:not(.text-gold-600)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: #C49A3F; transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
  border-radius: 2px;
}
header nav a:hover::after { transform: scaleX(1); }

/* ---------- Buttons polish ---------- */
a, button { transition: all .25s ease; }
a[href]:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #C49A3F;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Subtle "shimmer" on primary CTA on hover */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn-shimmer:hover::before { left: 125%; }

/* ---------- Form invalid ---------- */
form input.is-invalid,
form textarea.is-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children when parent has .stagger */
.stagger > * { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 140ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 220ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 380ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 460ms; }

/* ---------- Service / feature cards: top accent stripe ---------- */
.card-accent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.card-accent::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #C49A3F, #d4ad55, #C49A3F);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.card-accent:hover::before { transform: scaleX(1); }
.card-accent { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card-accent:hover { transform: translateY(-4px); }

/* ---------- Timeline connector for "Approach" ---------- */
.timeline {
  position: relative;
}
@media (min-width: 1024px) {
  .timeline::before {
    content: ""; position: absolute; left: 5%; right: 5%; top: 24px;
    height: 2px;
    background-image: linear-gradient(90deg, #C49A3F 50%, transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 0;
  }
}
.timeline > li { position: relative; z-index: 1; }

/* ---------- Gradient border (for premium cards) ---------- */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 1.25rem;
}
.gradient-border::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, rgba(196,154,63,0.6), rgba(10,31,68,0.15) 40%, rgba(196,154,63,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Floating decorative shapes ---------- */
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.float-slow { animation: floatY 7s ease-in-out infinite; }

/* ---------- Bouncing arrow ---------- */
@keyframes softBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}
.animate-bounce { animation: softBounce 1.6s ease-in-out infinite; }

/* ---------- Marquee (kept for reuse) ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee { width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover { animation-play-state: paused; }

/* ---------- Pack-promo ribbon ---------- */
.ribbon {
  position: absolute; top: 16px; left: -32px;
  transform: rotate(-35deg);
  background: #C49A3F; color: #0A1F44;
  font-weight: 800; font-size: 11px; letter-spacing: .18em;
  padding: 6px 36px; text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.35);
}

/* ---------- Glass card ---------- */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ---------- Section divider (curved SVG fill) ---------- */
.section-divider-top svg,
.section-divider-bottom svg { display: block; width: 100%; height: 60px; }

/* ---------- Form: floating label ---------- */
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  padding: 1.15rem 1rem .55rem;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fff;
  font-size: .9rem;
  color: #1F2937;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { padding-top: 1.4rem; min-height: 140px; resize: vertical; }
.field label {
  position: absolute;
  left: 1rem; top: 0.95rem;
  font-size: .85rem;
  color: #6b7280;
  pointer-events: none;
  transition: all .18s ease;
  background: transparent;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0A1F44;
  box-shadow: 0 0 0 3px rgba(10,31,68,0.08);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
  font-size: .68rem;
  color: #0A1F44;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Star rating ---------- */
.stars { display: inline-flex; gap: 2px; color: #C49A3F; }

/* ---------- WhatsApp pulse ---------- */
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-pulse { animation: waPulse 2.2s ease-out infinite; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .animate-bounce, .float-slow, .wa-pulse { animation: none; }
  .btn-shimmer::before { display: none; }
}
