/* KASPIT — main theme. Ported from src/index.css (Tailwind v4 + custom layers). */

:root {
  --color-primary: #C9A96E;
  --color-primary-light: #DFC291;
  --color-primary-dark: #A88B4A;
  --color-dark: #0A0A0A;
  --color-dark-900: #111111;
  --color-dark-800: #161616;
  --color-dark-700: #1A1A1A;
  --color-dark-600: #222222;
  --color-dark-500: #333333;
  --color-dark-400: #555555;
  --color-text: #F5F5F5;
  --color-text-muted: #C9C9C9;
  --color-text-dim: #8C8C8C;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ───────── BASE ───────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #0A0A0A; }
body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }

/* Mobile overflow guard */
@media (max-width: 767px) {
  p, li, span:not(.label-text), h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word; word-wrap: break-word;
  }
}

/* Small phones: shrink hero title so "Austria's Premier Boutique for" fits */
@media (max-width: 400px) {
  .hero-title { font-size: 1.3rem !important; }
}

/* Particle bleed-through: solid section backgrounds become semi-transparent */
section.bg-dark-900 { background-color: rgba(17, 17, 17, 0.55); }
section.bg-dark-800 { background-color: rgba(22, 22, 22, 0.55); }

::selection { background-color: rgba(201, 169, 110, 0.3); color: #ffffff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ───────── LAYOUT ───────── */
.section-padding {
  padding-left: clamp(1.5rem, 5vw, 8rem);
  padding-right: clamp(1.5rem, 5vw, 8rem);
}

/* ───────── TYPOGRAPHY ───────── */
.heading-xl, .heading-lg, .heading-md {
  font-family: var(--font-display);
  font-weight: 400;
  overflow-wrap: normal; word-break: normal;
  hyphens: manual; -webkit-hyphens: manual;
}
.heading-xl { font-size: clamp(2rem,   5.5vw, 4.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.heading-lg { font-size: clamp(1.5rem, 4vw,   3.25rem); letter-spacing: -0.02em; line-height: 1.1; }
.heading-md { font-size: clamp(1.25rem,2.6vw, 2.125rem);letter-spacing: -0.01em; line-height: 1.15; }
.heading-sm { font-size: clamp(1.125rem,2vw,  1.5rem);  font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.body-lg    { font-size: clamp(1rem,    1.5vw, 1.25rem); line-height: 1.7; color: var(--color-text-muted); }
.body-md    { font-size: clamp(0.875rem,1.2vw, 1.0625rem);line-height: 1.7; color: var(--color-text-muted); }
.label-text { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-primary); }

/* ───────── BUTTONS ───────── */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 0;
}
.btn-primary {
  padding: 0.875rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-dark);
}
.btn-outline {
  padding: calc(0.875rem - 1px) 1.25rem;
  background: transparent;
  color: var(--color-primary);
  font-weight: 500;
  border: 1px solid rgba(201, 169, 110, 0.3);
}
@media (min-width: 640px) {
  .btn-primary { padding: 1rem 2.25rem; font-size: 0.8125rem; }
  .btn-outline { padding: calc(1rem - 1px) 2.25rem; font-size: 0.8125rem; }
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.2);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(201, 169, 110, 0.05);
  transform: translateY(-2px);
}

/* ───────── LIQUID METAL BUTTONS (port of LiquidMetalButton.tsx) ─────────
 * Rectangular button with an animated metallic conic-gradient ring + dark inner fill.
 * Uses CSS @property to animate a gradient angle.
 */
@property --lm-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes lm-spin { from { --lm-angle: 0deg; } to { --lm-angle: 360deg; } }

.btn-metal,
.btn-liquid {
  position: relative;
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  height: 52px;
  border-radius: 0; /* rectangular */
  transition: transform .15s ease;
  vertical-align: middle;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-metal:active,
.btn-liquid:active { transform: scale(0.98); }
.btn-metal::before,
.btn-liquid::before {
  content: '';
  position: absolute;
  inset: 0;
  animation: lm-spin 4s linear infinite;
  background: conic-gradient(
    from var(--lm-angle),
    #606060 0%,
    #a8a8a8 8%,
    #e0e0e0 15%,
    #ffffff 20%,
    #c0c0c0 28%,
    #787878 35%,
    #989898 42%,
    #d8d8d8 50%,
    #ffffff 55%,
    #b0b0b0 62%,
    #686868 70%,
    #888888 78%,
    #cccccc 85%,
    #f0f0f0 90%,
    #989898 95%,
    #606060 100%
  );
  z-index: 0;
}
.btn-metal::after,
.btn-liquid::after {
  content: '';
  position: absolute;
  inset: 1px; /* 1px hairline reveals the ring */
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
  z-index: 1;
}
.btn-metal:hover::before,
.btn-liquid:hover::before {
  animation-duration: 2s;
  filter: brightness(1.25);
}
.btn-metal > span,
.btn-liquid > span,
.btn-metal {
  position: relative;
}
.btn-metal > .lm-label,
.btn-liquid > .lm-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(0.5rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #909090;
  font-size: clamp(0.5rem, 2.6vw, 0.8125rem);
  text-overflow: ellipsis;
  overflow: hidden;
  pointer-events: none;
  transition: color .3s ease;
}
.btn-metal:hover > .lm-label,
.btn-liquid:hover > .lm-label { color: #d0d0d0; }

/* Nav-CTA variant — narrower, same metallic ring */
.btn-liquid { max-width: 180px; height: 38px; }
.btn-liquid > .lm-label { font-size: 0.6875rem; letter-spacing: 0.12em; }
@media (max-width: 1023px) { .btn-liquid { max-width: 220px; height: 44px; } }

.glass-card { background: rgba(22,22,22,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.04); }
.divider    { height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.15), transparent); }

/* ───────── UTILITY CLASSES (replacements for Tailwind atoms used in markup) ───────── */
.text-primary    { color: var(--color-primary); }
.text-text       { color: var(--color-text); }
.text-text-muted { color: var(--color-text-muted); }
.text-text-dim   { color: var(--color-text-dim); }
.bg-dark         { background-color: var(--color-dark); }
.bg-dark-900     { background-color: var(--color-dark-900); }
.bg-dark-800     { background-color: var(--color-dark-800); }
.border-primary  { border-color: var(--color-primary); }

.font-display    { font-family: var(--font-display); }
.font-body       { font-family: var(--font-body); }
.font-mono       { font-family: ui-monospace, Menlo, Consolas, monospace; }
.uppercase       { text-transform: uppercase; }
.tracking-wide   { letter-spacing: 0.05em; }
.tracking-tight  { letter-spacing: -0.02em; }
.text-center     { text-align: center; }
.text-right      { text-align: right; }
.relative        { position: relative; }
.absolute        { position: absolute; }
.fixed           { position: fixed; }
.inset-0         { inset: 0; }
.z-0             { z-index: 0; }
.z-10            { z-index: 10; }
.z-50            { z-index: 50; }
.z-100           { z-index: 100; }
.overflow-hidden { overflow: hidden; }
.flex            { display: flex; }
.inline-flex     { display: inline-flex; }
.grid            { display: grid; }
.hidden          { display: none; }
.block           { display: block; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.shrink-0        { flex-shrink: 0; }
.gap-2           { gap: 0.5rem; }
.gap-3           { gap: 0.75rem; }
.gap-4           { gap: 1rem; }
.gap-6           { gap: 1.5rem; }
.gap-8           { gap: 2rem; }
.gap-10          { gap: 2.5rem; }
.gap-12          { gap: 3rem; }
.w-full          { width: 100%; }
.max-w-xs        { max-width: 20rem; }
.max-w-sm        { max-width: 24rem; }
.max-w-md        { max-width: 28rem; }
.max-w-lg        { max-width: 32rem; }
.max-w-xl        { max-width: 36rem; }
.max-w-2xl       { max-width: 42rem; }
.max-w-3xl       { max-width: 48rem; }
.max-w-4xl       { max-width: 56rem; }
.max-w-5xl       { max-width: 64rem; }
.mx-auto         { margin-left: auto; margin-right: auto; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-24 { margin-bottom: 6rem; }
.py-6  { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 3rem; padding-bottom: 3rem; }
.py-32 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-32 { padding-top: 8rem; }
.pt-36 { padding-top: 9rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.border-t       { border-top: 1px solid rgba(255,255,255,0.06); }
.border-b       { border-bottom: 1px solid rgba(255,255,255,0.06); }
.rounded-sm     { border-radius: 4px; }
.rounded-full   { border-radius: 999px; }
.text-xs        { font-size: 0.75rem; }
.text-sm        { font-size: 0.875rem; }
.text-base      { font-size: 1rem; }
.text-lg        { font-size: 1.125rem; }
.text-xl        { font-size: 1.25rem; }
.text-2xl       { font-size: 1.5rem; }
.text-3xl       { font-size: 1.875rem; }
.text-4xl       { font-size: 2.25rem; }
.font-light     { font-weight: 300; }
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }

/* Service-row arrow border */
.border-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* Min-height helpers */
.min-h-screen { min-height: 100vh; }

/* Responsive helpers — lg breakpoint = 1024px */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row   { flex-direction: row; }
  .md\:hidden     { display: none; }
  .md\:block      { display: block; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row   { flex-direction: row; }
  .lg\:hidden     { display: none; }
  .lg\:flex       { display: flex; }
  .lg\:items-center { align-items: center; }
  .lg\:h-24       { height: 6rem; }
  .lg\:py-28      { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:py-36      { padding-top: 9rem; padding-bottom: 9rem; }
  .lg\:pt-44      { padding-top: 11rem; }
  section.py-32 { padding-top: 6.5rem; padding-bottom: 6.5rem; }
  section.py-28 { padding-top: 6rem;   padding-bottom: 6rem; }
  section.py-24 { padding-top: 5rem;   padding-bottom: 5rem; }
  section.py-20 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
.grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ───────── HERO entrance (CSS-only, replaces GSAP) ───────── */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scaleX {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.reveal-up { animation: fadeUp 1.1s cubic-bezier(.16,1,.3,1) both; }
.reveal-delay-1 { animation-delay: .15s; }
.reveal-delay-2 { animation-delay: .3s; }
.reveal-delay-3 { animation-delay: .45s; }
.reveal-delay-4 { animation-delay: .6s; }
.reveal-delay-5 { animation-delay: .75s; }
.reveal-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,169,110,0.6), rgba(201,169,110,0.1) 70%, transparent);
  transform-origin: left;
  animation: scaleX 1.5s cubic-bezier(.16,1,.3,1) both;
}

/* IntersectionObserver scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-up, .reveal-line { animation: none !important; opacity: 1 !important; transform: none !important; }
}
