/* ============================================================
   Thordiam Jewellery — Single Page Site
   ============================================================ */

/* ---------- Local fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Theme tokens ---------- */
:root {
  --color-primary: #2E1A10;    /* logo background — dark chocolate brown */
  --color-secondary: #F1E6D8;  /* logo mark / text — warm cream */
  --accent: #C9A15C;           /* gold accent */
  --accent-dark: #A67C3D;
  --accent-soft: #D9BC85;

  --font-display: 'Instrument Serif', Times, serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* Type scale */
  --text-xs: 16px;
  --text-sm: 16px;
  --text-base: 20px;
  --text-lg: 24px;
  --text-xl: 30px;
  --text-2xl: 50px;
  --text-3xl: 60px;

  /* Weight scale */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing scale (base 4px) */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-5: 30px;
  --space-6: 40px;
  --space-7: 50px;
  --space-8: 60px;
  --space-9: 100px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --shadow-soft: rgba(0, 0, 0, 0.26) 0px 0.636953px 1.14652px -1.125px, rgba(0, 0, 0, 0.24) 0px 1.9316px 3.47689px -2.25px, rgba(0, 0, 0, 0.192) 0px 5.10612px 9.19102px -3.375px, rgba(0, 0, 0, 0.03) 0px 16px 28.8px -4.5px;
  --container: 1250px;
}

[data-theme="dark"] {
  --bg: var(--color-primary);
  --bg-alt: #26150C;
  --surface: #3D2417;
  --surface-2: #472A1B;
  --text: var(--color-secondary);
  --text-muted: #CDB9A6;
  --border: #55351F;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: var(--color-secondary);
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FBF4EA;
  --text: var(--color-primary);
  --text-muted: #6E5340;
  --border: #E4D6C3;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-3) var(--space-5);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1C0F08;
  box-shadow: 0 10px 30px -10px rgba(201,161,92,.6);
}
.btn-primary:hover { box-shadow: 0 16px 36px -12px rgba(201,161,92,.75); }

.btn-pill {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 6px 6px 6px var(--space-5);
  box-shadow: var(--shadow-soft);
  gap: var(--space-3);
}
.btn-pill:hover { box-shadow: var(--shadow-soft); }
.btn-pill::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%; right: 6px;
  width: 40px; height: 40px;
  transform: translateY(-50%) scale(1);
  background: var(--accent);
  border-radius: 50%;
  transition: transform .55s var(--ease);
}
.btn-pill:hover::before { transform: translateY(-50%) scale(15); }
[data-theme="dark"] .btn-pill {
  background: #F1E6D8;
  color: var(--color-primary);
}
.btn-pill .btn-text {
  position: relative;
  z-index: 1;
  transition: color .45s var(--ease);
}
.btn-pill:hover .btn-text { color: var(--color-primary); }
.btn-icon-circle {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.btn-icon-circle .icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  transition: transform .45s var(--ease);
}
.btn-pill:hover .btn-icon-circle .icon { transform: translateX(2px); }

.btn-pill-sm {
  padding: 4px 4px 4px var(--space-4);
  font-size: var(--text-xs);
}
.btn-pill-sm.btn-pill::before { width: 30px; height: 30px; right: 4px; }
.btn-pill-sm .btn-icon-circle { width: 30px; height: 30px; }
.btn-pill-sm .btn-icon-circle .icon { width: 14px; height: 14px; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-block { width: 100%; }

/* ---------- Logo ---------- */
.logo-img {
  display: none;
  height: 46px;
  width: auto;
}
[data-theme="light"] .logo-for-light { display: block; }
[data-theme="dark"] .logo-for-dark { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: background-color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #EDE1CE;
  border: 1px solid var(--border);
  color: var(--color-primary);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.9); }
.icon-btn .icon { width: 19px; height: 19px; }

#themeToggle { position: relative; overflow: hidden; }
#themeToggle .icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  opacity: 1;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
#themeToggle .icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(.4); }
[data-theme="light"] #themeToggle .icon-sun { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(.4); }
[data-theme="light"] #themeToggle .icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--color-primary); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  z-index: 98;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

.header-cta { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  animation: floaty 12s ease-in-out infinite;
}
.glow-b { width: 320px; height: 320px; background: var(--accent-soft); bottom: -10%; left: -6%; animation-delay: -6s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 5vh auto 0; }
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}
.hero-title { line-height: 1.15; margin-bottom: var(--space-4); }
.hero-title-serif {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: var(--weight-regular);
  font-size: clamp(1.9rem, 4.5vw, var(--text-2xl));
  line-height: 1.1em;
  color: var(--text);
}
.hero-title-bold {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: clamp(2.1rem, 5.5vw, var(--text-3xl));
  letter-spacing: -0.02em;
  line-height: 1.1em;
  color: var(--text);
}
.hero-text {
  font-size: var(--text-base);
  line-height: 1.6em;
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-6);
}
.hero-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.hero-actions .btn .icon { width: 16px; height: 16px; stroke: currentColor; }

/* ---------- Hero carousel: 3D rotating cylinder (same values as source) ---------- */
.hero-carousel {
  --card-width: 1500px;
  --card-height: 2200px;
  --cylinder-radius: 3000px;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: -15vh 0;
}
.hero-carousel::before,
.hero-carousel::after {
  content: '';
  position: absolute;
  bottom: -10%;
  width: 22%;
  max-width: 320px;
  height: 40%;
  background: radial-gradient(ellipse at bottom, var(--accent-soft) 0%, transparent 70%);
  opacity: .3;
  filter: blur(30px);
  pointer-events: none;
  z-index: 2;
}
.hero-carousel::before { left: 0; }
.hero-carousel::after { right: 0; }
.carousel-section {
  width: 100%;
  height: 700px;
  position: relative;
  overflow: hidden;
}
.carousel-mask {
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 3%, black 15%, black 85%, transparent 97%);
  mask-image: linear-gradient(90deg, transparent 3%, black 15%, black 85%, transparent 97%);
}
.carousel-perspective {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 800px;
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel-cylinder {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  transform: translateZ(calc(var(--cylinder-radius) * -1)) rotateY(0deg);
  transition: transform .1s linear;
}
.carousel-cylinder:active { cursor: grabbing; }
.carousel-slot {
  position: absolute;
  width: calc(var(--cylinder-radius) * 2 + var(--card-width));
  height: var(--card-height);
  transform-style: preserve-3d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: rotateY(var(--slot-angle));
}
.carousel-card {
  width: var(--card-width);
  height: var(--card-height);
  border-radius: 7%;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow-soft);
  transition: filter .4s ease, box-shadow .4s ease, transform .4s ease;
}
.card-left { transform: rotateY(90deg); }
.card-right { transform: rotateY(-90deg); }
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.carousel-card:hover { box-shadow: var(--shadow-soft); filter: brightness(1.05); }

@media (max-width: 1200px) {
  .hero-carousel { --card-width: 900px; --card-height: 1320px; --cylinder-radius: 1800px; margin: -10vh 0; }
  .carousel-section { height: 600px; }
  .carousel-perspective { perspective: 500px; }
}

@media (max-width: 768px) {
  .hero-carousel { --card-width: 600px; --card-height: 880px; --cylinder-radius: 1200px; margin: -6vh 0; }
  .carousel-section { height: 650px; }
  .carousel-perspective { perspective: 350px; }
  .carousel-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  }
}

@media (max-width: 480px) {
  .hero-carousel { --card-width: 350px; --card-height: 510px; --cylinder-radius: 700px; margin: -6vh 0 -3vh; }
  .carousel-section { height: 400px; }
  .carousel-perspective { perspective: 700px; }
}

/* ---------- Hero mini feature strip ---------- */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding-top: var(--space-6);
}
.hero-feature { padding: 0 var(--space-5); }
.hero-feature:not(:last-child) { border-right: 1px solid var(--border); }
.hero-feature h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: 6px;
}
.hero-feature p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
[data-theme="light"] .section-alt { background: #f9f5f07d; }
.section-head { max-width: 1000px; margin: 0 auto var(--space-8); text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.4vw, var(--text-2xl)); }
.section-text { color: var(--text-muted); font-size: var(--text-base); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; display: flex; justify-content: center; }
.about-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 440px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}
.about-story-img { width: 100%; height: 100%; object-fit: cover; }
.badge-float {
  position: absolute;
  bottom: 60px; left: -48px;
  display: flex; align-items: center; gap: 10px;
  background: #EDE1CE;
  border: 1px solid var(--border);
  padding: 10px var(--space-4) 10px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  color: var(--color-primary);
}
.badge-float .icon-chip {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.badge-float .icon { width: 15px; height: 15px; color: var(--accent); }

/* Section badge label + tightened section titles — same typographic system as the hero */
.eyebrow.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 11px;
}
.eyebrow-badge .icon-chip {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.eyebrow-badge .icon { color: var(--accent); stroke: var(--accent); width: 11px; height: 11px; }
.section-title {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
#about .section-text { font-size: var(--text-base); line-height: 1.6em; }

.feature-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-6); }
.feature-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.feature-list .feature-icon {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease);
}
.feature-item:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-item h3 { font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.category-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.category-card-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.category-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.category-card:hover .category-card-media img { transform: scale(1.06); }
.category-card-body {
  padding: var(--space-4) var(--space-6) var(--space-6) var(--space-5);
  border-top: 1px solid var(--border);
}
.category-card h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: 8px; }
.category-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; }

/* ---------- Shop by category ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.shop-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.shop-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.shop-card-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .4s var(--ease);
}
.shop-card:hover .shop-card-bg { transform: scale(1.06); }
.shop-card > span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 10px rgba(0,0,0,.4);
}
.shop-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* ---------- Process: flowing wave timeline ---------- */
.wave-timeline { position: relative; height: 360px; width: calc(100% - 180px); margin: -65px 0 0; padding: 0; list-style: none; }
.wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
  opacity: .6;
  animation: wave-flow 18s linear infinite;
}
@keyframes wave-flow { to { stroke-dashoffset: -280; } }
.wave-step { position: absolute; transform: translate(-50%, -50%); text-align: left; z-index: 1; }
.wave-dot {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 3;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--color-primary);
  box-shadow: 0 0 0 6px var(--bg), 0 0 18px rgba(201,161,92,.5);
  transition: transform .35s var(--ease);
}
.wave-dot .icon { width: 18px; height: 18px; stroke: var(--color-primary); }
.wave-step:hover .wave-dot { transform: translate(-50%, -50%) scale(1.12); }
.wave-text { position: absolute; top: 30px; left: -8px; width: 200px; z-index: 1; }
.wave-text h3 { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: 4px; }
.wave-text p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }
.wave-num {
  position: absolute;
  top: -2px; left: 123px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 3.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  z-index: 0;
  user-select: none;
}
.wave-step:hover .wave-num { -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent); }
.wave-step:hover h3 { color: var(--accent); transition: color .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .wave-svg path { animation: none; }
}

/* Mobile stacked fallback */
.wave-mobile { display: none; margin: 0; padding: 0; list-style: none; }
.wave-mobile-item { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.wave-mobile-item:last-child { border-bottom: none; }
.wave-mobile-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--color-primary);
}
.wave-mobile-num .icon { width: 20px; height: 20px; stroke: var(--color-primary); }
.wave-mobile-item h3 { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: 4px; }
.wave-mobile-item p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }

@media (max-width: 860px) {
  .wave-timeline { display: none; }
  .wave-mobile { display: block; }
}

/* ---------- Showroom ---------- */
.showroom-grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: var(--space-9); align-items: stretch; }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
}
.rating-badge .stars { color: var(--accent); letter-spacing: 2px; }
.info-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0 0 var(--space-6); }
.info-list li { display: flex; gap: 14px; align-items: center; font-size: var(--text-sm); color: var(--text-muted); }
.info-list .feature-icon { width: 40px; height: 40px; }
.info-list .icon { width: 18px; height: 18px; }

.showroom-visual { display: flex; justify-content: center; align-items: center; }
.showroom-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.showroom-frame.map-frame { overflow: hidden; padding: 0; }
.showroom-frame.map-frame iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.3) contrast(1.05);
  transition: filter .4s var(--ease);
}
.showroom-frame.map-frame:hover iframe { filter: none; }
[data-theme="dark"] .showroom-frame.map-frame iframe { filter: invert(90%) hue-rotate(180deg) grayscale(.2) contrast(.9); }
[data-theme="dark"] .showroom-frame.map-frame:hover iframe { filter: invert(90%) hue-rotate(180deg) grayscale(0) contrast(.95); }
.frame-ring {
  position: absolute;
  inset: 30px;
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius-lg) - 10px);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Testimonials ---------- */
#testimonials { overflow-x: hidden; }
.google-g { width: 34px; height: 34px; flex-shrink: 0; }
.stars { color: #F5A623; letter-spacing: 2px; font-size: 14px; }

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  width: 90vw;
  margin: -28px 0 -28px calc(50% - 45vw);
  padding: 28px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
@media (max-width: 860px) {
  .testimonial-marquee { width: 96vw; margin-left: calc(50% - 48vw); }
}
.testimonial-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  will-change: transform;
  animation: testimonial-marquee 48s linear infinite;
}
.testimonial-marquee:hover .testimonial-track { animation-play-state: paused; }
@keyframes testimonial-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 3)); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation-play-state: paused; }
}
.testimonial-card {
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  height: 248px;
  margin-right: var(--space-5);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  user-select: none;
}
.testimonial-card::after {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 16%, transparent);
  pointer-events: none;
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
.testimonial-head cite {
  display: block;
  font-style: normal;
  font-weight: var(--weight-semibold);
  color: var(--text);
  font-size: var(--text-sm);
}
.testimonial-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
.google-g-sm { width: 13px; height: 13px; }
.testimonial-stars { display: block; margin-bottom: 14px; }
.testimonial-card blockquote {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
@media (max-width: 560px) {
  .testimonial-card { width: 280px; flex-basis: 280px; height: 264px; }
}
/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-8); align-items: center; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-medium); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-field textarea { resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--accent); min-height: 1.2em; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin: 0 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 56px 0 26px;
  background: var(--bg-alt);
}
@media (max-width: 560px) {
  .site-footer { margin: 0 10px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
}
[data-theme="light"] .site-footer {
  --text-muted: #CDB9A6;
  --border: #55351F;
  background: var(--color-primary);
}
[data-theme="light"] .site-footer .logo-for-light { display: none; }
[data-theme="light"] .site-footer .logo-for-dark { display: block; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { pointer-events: none; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: var(--text-sm); color: var(--text-muted); transition: color .25s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-bottom a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--color-primary);
}
.back-to-top:active { transform: translateY(-1px) scale(.96); }
.back-to-top .icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.back-to-top:hover .icon { transform: translateY(-2px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { margin-top: 4vh; }
  .about-grid, .showroom-grid, .contact-grid { grid-template-columns: 1fr; gap: 0px; }
  .about-visual { order: -1; }
  .badge-float { bottom: 40px; left: 40px; }
  .wave-timeline { margin-top: -45px; }
  .wave-num { top: -6px; left: 95px; font-size: 2.8rem; }
  .wave-text { width: 170px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-5);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 110px var(--space-6) var(--space-6);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { font-size: var(--text-base); }

  .hero-inner { margin-top: 3vh; }
  .hero-features { grid-template-columns: 1fr; gap: var(--space-4); text-align: center; }
  .hero-feature { padding: 0; }
  .hero-feature:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: var(--space-4); }
  .category-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }

}

@media (max-width: 560px) {
  .logo-img { height: 36px; }
  .section { padding: 68px 0; }
  .hero { padding-top: 110px; }
  .hero-inner { margin-top: 2vh; }
  .hero-text { font-size: 15px; line-height: 1.55em; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn-pill { padding: 5px 5px 5px var(--space-4); font-size: var(--text-xs); }
  .hero-actions .btn-pill::before { width: 32px; height: 32px; right: 5px; }
  .hero-actions .btn-icon-circle { width: 32px; height: 32px; }
  .hero-actions .btn-icon-circle .icon { width: 15px; height: 15px; }
  .badge-float { bottom: 24px; left: 20px; padding: 8px 14px 8px 8px; font-size: 11px; }
  .badge-float .icon-chip { width: 26px; height: 26px; }
  .footer-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 26px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .back-to-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
