@import "tokens.css";

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

html.butterfly-scrolling {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-ivory);
  overflow-x: clip;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.35s var(--ease-premium);
}

a:hover { color: var(--rose); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

.gradient-heading {
  background: linear-gradient(135deg, var(--gold), var(--rose-deep), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-headline {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.05;
}

.gold-line {
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  margin-top: var(--space-sm);
  transition: width 0.6s var(--ease-premium);
}

.is-visible .gold-line { width: 80px; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.container-wide {
  width: min(1400px, 94vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-dot-light);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-locked {
  transform: translateY(0) !important;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-height);
  padding: 0 var(--space-sm);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover {
  color: var(--text);
}

.logo-link img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.logo-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 0.65rem;
  border-left: var(--border-dot-light);
  line-height: 1.15;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-deep);
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link-icon {
  color: var(--rose);
  font-size: 0.85em;
  opacity: 0.88;
  transition: color 0.35s var(--ease-premium), opacity 0.35s var(--ease-premium);
}

.nav-link:hover {
  color: var(--sage);
}

.nav-link:hover .nav-link-icon {
  color: var(--sage);
  opacity: 1;
}

.nav-link.is-active,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--sage);
}

.nav-link.is-active .nav-link-icon,
.nav-link.active .nav-link-icon,
.nav-link[aria-current="page"] .nav-link-icon {
  color: var(--sage);
  opacity: 1;
}

.nav-link.is-active:hover,
.nav-link.is-active:hover .nav-link-icon,
.nav-link.active:hover,
.nav-link.active:hover .nav-link-icon,
.nav-link[aria-current="page"]:hover,
.nav-link[aria-current="page"]:hover .nav-link-icon {
  color: var(--sage);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  border-bottom: 1px dotted var(--rose);
  transition: width 0.35s var(--ease-premium), left 0.35s var(--ease-premium);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
  border-bottom-color: var(--sage);
}

.nav-link.is-active::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
  left: 0;
  border-bottom-color: var(--sage);
}

.nav-toggle {
  display: none;
  background: none;
  border: var(--border-dot);
  border-radius: var(--radius-pill);
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--rose-deep);
}

/* Search */
.search-wrap {
  position: relative;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px dotted var(--lavender);
  border-radius: var(--radius-pill);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
}

.search-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(224, 24, 32, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lavender);
  pointer-events: auto;
  cursor: pointer;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: var(--border-dot-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-height: 420px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-premium), transform 0.2s var(--ease-premium);
  z-index: var(--z-search);
}

.search-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  position: relative;
  align-items: center;
}

.search-result::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 3px dotted var(--gold);
  transition: width 0.35s var(--ease-premium);
}

.search-result:hover::before,
.search-result.is-focused::before {
  width: 3px;
}

.search-result-thumb {
  border: var(--border-dot-light);
  border-radius: var(--radius-sm);
  background: var(--pearl);
  overflow: hidden;
  aspect-ratio: 1;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-result:hover .search-result-thumb {
  border-color: var(--gold);
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: var(--border-dot-light);
}

/* Buttons — premium 3D bevel / emboss (.contact-launcher & .btn-icon excluded) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(8, 40, 20, 0.22);
  border-right-color: rgba(8, 40, 20, 0.18);
  color: var(--text-cream);
  background: var(--btn-gradient);
  box-shadow: var(--btn-shadow-raised);
  transition:
    background 0.4s var(--ease-premium),
    color 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    transform 0.35s var(--ease-premium);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--btn-gradient);
  box-shadow: var(--btn-shadow-raised);
}

.btn-secondary {
  background: var(--btn-gradient-soft);
  border-radius: var(--radius-pill);
  box-shadow: var(--btn-shadow-raised-soft);
}

.btn-ghost {
  background: var(--btn-gradient-soft);
  border: 1px solid transparent;
  color: var(--text-cream);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--btn-shadow-raised-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-color);
  border: var(--btn-hover-border);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: var(--btn-shadow-active);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.section-plum a.btn {
  color: var(--text-cream);
}

.section-plum a.btn:hover,
.section-plum a.btn:focus-visible {
  color: var(--btn-hover-color);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible,
  .btn-secondary:hover,
  .btn-secondary:focus-visible,
  .btn-ghost:hover,
  .btn-ghost:focus-visible,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-ghost:active {
    transform: none;
  }
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: var(--border-dot);
  background: transparent;
  color: var(--rose-deep);
}

.btn-icon:hover {
  transform: scale(1.05);
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(90deg) scale(1.05); }
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border: 1px dotted currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rose-deep);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
}

.chip:hover,
.chip.is-active {
  background: var(--rose);
  color: var(--text-cream);
  border-color: var(--rose);
  transform: scale(1.05);
}

/* Main offset for fixed header */
main {
  padding-top: var(--header-height);
}

.section {
  padding: var(--space-xl) 0;
}

.section-blush { background: var(--bg-blush); }

/* Premium linen texture on dark plum surfaces (footer, craft band, CTAs) */
.texture-dark,
.section-plum,
.site-footer {
  position: relative;
  isolation: isolate;
}

.texture-dark::before,
.section-plum::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--texture-dark-opacity);
  background-image:
    var(--texture-dark-shimmer),
    var(--texture-dark-dots),
    var(--texture-dark-weave-a),
    var(--texture-dark-weave-b);
  background-size: 100% 100%, 3px 3px, 100% 100%, 100% 100%;
}

.texture-dark > *,
.section-plum > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}

.section-plum {
  background: var(--bg-plum);
  color: var(--text-cream);
}

.section-plum a { color: var(--pearl); }

/* Natural-fit image boxes (non-gallery pages) */
.img-fit-natural {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  background: var(--pearl);
  padding: 0.75rem;
  border: var(--border-dot-light);
  border-radius: var(--radius-md);
  line-height: 0;
}

.img-fit-natural img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}

/* Hero home */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(224, 24, 32, 0.1), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(224, 200, 32, 0.09), transparent 65%),
    var(--bg-ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-stack {
  position: relative;
  min-height: 0;
}

.hero-stack-card {
  position: absolute;
  width: auto;
  max-width: 72%;
  box-shadow: var(--shadow-card);
}

.hero-stack-card .img-fit-natural {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-stack-card .img-fit-natural img {
  max-height: min(280px, 42vh);
}

.hero-stack-card:nth-child(1) { top: 0; right: 5%; transform: rotate(-3deg); z-index: 1; }
.hero-stack-card:nth-child(2) { top: 28%; left: 0; transform: rotate(2deg); z-index: 2; }
.hero-stack-card:nth-child(3) { bottom: 0; right: 10%; transform: rotate(-1deg); z-index: 3; }

/* Marquee */
.marquee-strip {
  overflow: hidden;
  padding: var(--space-md) 0;
  border-block: var(--border-dot-gold);
  background: linear-gradient(90deg, var(--bg-blush), #fde8ea 35%, #e5f5fb 70%, var(--bg-blush));
}

.marquee-inner {
  display: flex;
  width: max-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-right: var(--space-md);
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  color: var(--marquee-color, var(--rose));
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px dotted var(--marquee-color, var(--gold));
  color: var(--marquee-color, var(--gold));
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.55);
}

/* Collections scroll */
.collections-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.collection-card {
  flex: 0 0 min(300px, 80vw);
  scroll-snap-align: start;
  border: var(--border-dot-light);
  border-radius: var(--radius-lg);
  background: var(--bg-ivory);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
}

.collection-card:hover {
  border-color: var(--lavender);
  box-shadow: 0 16px 48px rgba(26, 46, 38, 0.14);
}

.collection-card .img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-bottom: var(--border-dot-light);
  border-radius: 0;
  border-inline: none;
  border-top: none;
}

.collection-card .img-box.img-fit-natural {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.collection-card .img-box img {
  max-height: 220px;
  object-fit: contain;
  margin-inline: auto;
}

.collection-card-body {
  padding: var(--space-md);
  text-align: center;
}

/* Craft band */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.craft-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  border: var(--border-dot-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

/* Mosaic */
.mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.mosaic-item {
  transition: border-color 0.35s var(--ease-premium), transform 0.35s var(--ease-premium);
}

.mosaic-item:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.mosaic-item img {
  max-height: 200px;
}

/* About */
.about-editorial {
  max-width: 720px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--rose-deep);
  border-left: 3px dotted var(--gold);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dotted var(--rose);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s var(--ease-premium);
}

.is-visible .timeline::before { transform: scaleY(1); }

.timeline-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
}

.is-visible .timeline-step {
  opacity: 1;
  transform: none;
}

.timeline-step:nth-child(2) { transition-delay: 0.08s; }
.timeline-step:nth-child(3) { transition-delay: 0.16s; }
.timeline-step:nth-child(4) { transition-delay: 0.24s; }

.timeline-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: var(--border-dot-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  background: var(--bg-blush);
  box-shadow: 0 0 0 4px var(--bg-blush);
  position: relative;
  z-index: 1;
  transform: scale(0);
  transition: transform 0.45s var(--ease-premium);
}

.is-visible .timeline-icon { transform: scale(1); }

.timeline-step:nth-child(2) .timeline-icon { transition-delay: 0.12s; }
.timeline-step:nth-child(3) .timeline-icon { transition-delay: 0.2s; }
.timeline-step:nth-child(4) .timeline-icon { transition-delay: 0.28s; }

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-body h3 {
  margin-bottom: 0.35rem;
}

.timeline-body p {
  margin: 0;
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.contact-panel {
  background: linear-gradient(160deg, var(--bg-blush), var(--pearl));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 55%;
  background: url("../images/logos/logo.png") right bottom / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-details li i {
  color: var(--rose);
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--rose-deep);
  text-decoration: underline;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-deep);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contact-social-link:hover {
  background: var(--rose);
  color: white;
  transform: translateY(-2px);
}

.form-card {
  background: white;
  border: var(--border-dot-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--rose-deep);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px dotted var(--rose-deep);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  transition: border-color 0.35s var(--ease-premium);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rose);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-tab {
  flex: 1;
  padding: 0.75rem;
  border: var(--border-dot-light);
  border-radius: var(--radius-sm);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
}

.form-tab.is-active {
  border-color: var(--rose);
  background: rgba(224, 24, 32, 0.08);
  color: var(--rose-deep);
}

.form-panel {
  min-height: 0;
}

.form-row {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-compact .form-group {
  margin-bottom: var(--space-sm);
}

.form-compact .form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-compact .form-group input,
.form-compact .form-group textarea {
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
}

.form-compact textarea {
  min-height: 0;
  resize: vertical;
}

@keyframes form-message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes form-message-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.form-message {
  margin-top: var(--space-sm);
  display: none;
}

.form-message.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  line-height: 1.5;
  font-size: 0.95rem;
}

.form-message.is-success {
  background: linear-gradient(135deg, rgba(8, 120, 40, 0.1) 0%, rgba(224, 200, 32, 0.08) 100%);
  border: 1px dotted var(--sage);
  color: #065820;
  box-shadow:
    0 0 0 1px rgba(8, 120, 40, 0.06),
    0 6px 24px rgba(8, 120, 40, 0.1);
  animation: form-message-in 0.45s var(--ease-premium) forwards;
}

.form-message.is-success.is-hiding {
  animation: form-message-out 0.4s var(--ease-premium) forwards;
}

.form-message__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(8, 120, 40, 0.14);
  color: var(--sage);
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(8, 120, 40, 0.2);
}

.form-message__text {
  flex: 1;
  padding-top: 0.1rem;
  font-weight: 500;
}

.form-message.is-error {
  background: rgba(160, 24, 32, 0.08);
  border: 1px dotted var(--rose-deep);
  color: var(--rose-deep);
  animation: form-message-in 0.35s var(--ease-premium) forwards;
}

.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  transition: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .form-message.is-success,
  .form-message.is-error,
  .form-message.is-success.is-hiding {
    animation: none;
  }

  .btn.is-loading::after {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.35);
  }
}

/* Footer */
.site-footer {
  background: var(--bg-plum);
  color: var(--text-cream);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: var(--border-dot-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-link {
  color: var(--pearl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  opacity: 0.85;
  transition: opacity 0.35s var(--ease-premium);
  position: relative;
}

.footer-link-icon {
  color: var(--rose);
  font-size: 0.85em;
  opacity: 0.88;
  width: 1.1em;
  text-align: center;
  transition: color 0.35s var(--ease-premium), opacity 0.35s var(--ease-premium);
}

.footer-link:hover .footer-link-icon {
  color: var(--sage);
  opacity: 1;
}

.footer-link.is-active,
.footer-link.active,
.footer-link[aria-current="page"] {
  opacity: 1;
  color: var(--sage);
}

.footer-link.is-active .footer-link-icon,
.footer-link.active .footer-link-icon,
.footer-link[aria-current="page"] .footer-link-icon {
  color: var(--sage);
  opacity: 1;
}

.footer-link.is-active:hover,
.footer-link.is-active:hover .footer-link-icon,
.footer-link.active:hover,
.footer-link.active:hover .footer-link-icon,
.footer-link[aria-current="page"]:hover,
.footer-link[aria-current="page"]:hover .footer-link-icon {
  color: var(--sage);
}

.footer-link:hover {
  opacity: 1;
  color: var(--sage);
}

.footer-link:hover::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-bottom: 1px dotted var(--sage);
  margin-top: 2px;
}

.footer-link.is-active::after,
.footer-link.active::after,
.footer-link[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-bottom: 1px dotted var(--sage);
  margin-top: 2px;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  border: var(--border-dot-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pearl);
  transition: all 0.35s var(--ease-premium);
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--border-dot-dark);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-credit a {
  color: var(--pearl);
  text-decoration: none;
  transition: color 0.35s var(--ease-premium), opacity 0.35s var(--ease-premium);
}

.footer-credit a:hover {
  color: var(--gold);
  opacity: 1;
}

/* Floating actions — launcher and butterfly use independent fixed anchors
   so butterfly show/hide does not shift the launcher */
.floating-column {
  position: fixed;
  inset: auto;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: var(--z-floating);
  pointer-events: none;
}

.contact-launcher-wrap {
  position: fixed;
  bottom: calc(var(--floating-inset) + var(--butterfly-size) + var(--floating-gap) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--butterfly-inset-right) + (var(--butterfly-size) - var(--launcher-size)) / 2 + env(safe-area-inset-right, 0px));
  z-index: var(--z-floating);
  pointer-events: auto;
}

.contact-launcher {
  position: relative;
  width: var(--launcher-size);
  height: var(--launcher-size);
  padding: 0;
  border-radius: 50%;
  border: var(--border-dot);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--rose-deep);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
  transition: all 0.35s var(--ease-premium);
}

.contact-launcher:hover,
.contact-launcher.is-open {
  border-color: var(--gold);
}

.contact-launcher.is-open {
  animation: orbitSpin 4s linear infinite;
}

.contact-launcher-icon {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  line-height: 1;
  transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
}

.contact-launcher-icon::before {
  display: block;
  line-height: 1;
}

.contact-launcher-icon--chat {
  transform: translateY(1px);
}

.contact-launcher-icon--close {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.contact-launcher.is-open .contact-launcher-icon--chat {
  opacity: 0;
  transform: translateY(1px) scale(0.85);
  pointer-events: none;
}

.contact-launcher.is-open .contact-launcher-icon--close {
  opacity: 1;
  transform: scale(1);
}

@keyframes orbitSpin {
  to { box-shadow: 0 0 0 2px rgba(224, 200, 32, 0.3); }
}

.contact-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.35s var(--ease-premium);
}

.contact-menu.is-open {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.contact-menu a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-dot);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
  transition: transform 0.3s var(--ease-premium);
}

.contact-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
.contact-menu.is-open a:nth-child(2) { transition-delay: 0.1s; }
.contact-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }

.contact-menu a:hover { transform: scale(1.1); color: var(--gold); }

.butterfly-btn {
  position: fixed;
  bottom: calc(var(--floating-inset) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--butterfly-inset-right) + env(safe-area-inset-right, 0px));
  z-index: var(--z-floating);
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: var(--butterfly-size);
  height: var(--butterfly-size);
  line-height: 0;
}

.butterfly-btn .butterfly-lottie {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(26, 46, 38, 0.18));
}

.butterfly-btn .butterfly-lottie svg {
  width: 100% !important;
  height: 100% !important;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.page-404-illus {
  width: 120px;
  margin-bottom: var(--space-md);
}

/* Toast */
.toast {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 16px;
  padding: 1rem 1.5rem;
  background: white;
  border: var(--border-dot-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.3s var(--ease-premium);
  z-index: var(--z-modal);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 38, 0.45);
  backdrop-filter: blur(2px);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-premium);
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  height: 100dvh;
  background: var(--bg-ivory);
  border-right: var(--border-dot-light);
  box-shadow: 8px 0 32px rgba(26, 46, 38, 0.12);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s var(--ease-premium);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  border-bottom: var(--border-dot-light);
  flex-shrink: 0;
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.mobile-nav-brand img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.mobile-nav-brand .logo-brand {
  padding-left: 0.5rem;
  min-width: 0;
}

.mobile-nav-brand .logo-title {
  font-size: 1rem;
  white-space: normal;
}

.mobile-nav-brand .logo-tagline {
  font-size: 0.58rem;
  white-space: normal;
  line-height: 1.25;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: var(--border-dot);
  border-radius: var(--radius-pill);
  background: white;
  color: var(--rose-deep);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-premium), color 0.3s var(--ease-premium);
}

.mobile-nav-close:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.mobile-nav-search {
  padding: var(--space-sm);
  max-width: none;
  flex-shrink: 0;
}

.mobile-nav-search .search-icon {
  left: calc(var(--space-sm) + 1rem);
}

.mobile-nav-search .search-input {
  padding-left: 2.75rem;
}

.mobile-nav-search .search-dropdown {
  position: absolute;
  max-height: min(50vh, 320px);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-sm) var(--space-sm) var(--space-lg);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border-left: 2px dotted transparent;
  font-weight: 600;
  transition: all 0.3s var(--ease-premium);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active,
.mobile-nav-link[aria-current="page"] {
  border-left-color: var(--sage);
  background: rgba(8, 120, 40, 0.06);
  color: var(--sage);
}

.mobile-nav-cta {
  margin-top: var(--space-sm);
  justify-content: center;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .mobile-nav-backdrop,
  .mobile-nav-drawer {
    display: none;
  }
}

@media (max-width: 900px) {
  .container,
  .container-wide {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--space-sm);
    box-sizing: border-box;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
  }

  .logo-link {
    flex: 1;
    min-width: 0;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .logo-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .header-search {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hero-grid,
  .contact-split,
  .footer-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    margin-top: var(--space-lg);
    min-height: 280px;
  }

  .contact-panel,
  .form-card {
    padding: var(--space-md);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .page-404 {
    padding: var(--space-lg) var(--space-sm);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .form-tabs {
    flex-direction: column;
  }

  .mosaic-item img {
    max-height: 160px;
  }

  .collection-card {
    flex: 0 0 min(280px, 85vw);
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding-inline: var(--space-xs);
  }

  .logo-link img {
    height: 40px;
  }

  .logo-brand {
    padding-left: 0.5rem;
    gap: 0.05rem;
    min-width: 0;
  }

  .logo-title {
    font-size: 0.95rem;
  }

  .logo-tagline {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.03em;
    line-height: 1.25;
  }

  .hero-stack {
    min-height: 220px;
  }

  .hero-stack-card {
    max-width: 78%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .form-tab {
    font-size: 0.9rem;
    padding: 0.65rem;
  }

  :root {
    --launcher-size: 48px;
    --butterfly-size: 52px;
    --floating-inset: 8px;
    --butterfly-inset-right: 10px;
  }
}

