/* ==========================================================================
   Tailoring by Monica — "Atelier"
   Flat-vector sewing-poster look: butter cream ground, coral red and deep navy,
   organic blob dividers, dashed pattern pieces, flat illustrated sewing objects.
   ========================================================================== */

:root {
  --cream-50: #fdf7ea;
  --cream-100: #faebcd;
  --cream-200: #f4dfb8;
  --cream-300: #ebd09e;

  --red-400: #e05a4e;
  --red-500: #d23b33;
  --red-600: #be1e2d;
  --red-700: #9a1622;

  --navy-400: #3a4a73;
  --navy-500: #2a3a61;
  --navy-600: #1e2a4a;
  --navy-700: #16203a;

  --clay-500: #c2542a;
  --tan-500: #b07b4a;

  --ink: #2b2a2e;
  --muted: #6c6664;
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  background: var(--cream-100);
}

/* Type ===================================================================== */

.display-xl { font-size: clamp(2.2rem, 5.4vw, 3.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(1.95rem, 4.6vw, 3rem);    line-height: 1.12; letter-spacing: -0.015em; }
.display-md { font-size: clamp(1.5rem, 3.2vw, 2rem);     line-height: 1.2;  letter-spacing: -0.01em; }

.eyebrow {
  font-family: Jost, ui-sans-serif, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Grounds ================================================================== */

/* Soft blob washes, like the shapes behind the reference layouts */
.wash { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

/* Faint gingham, used sparingly */
.bg-gingham {
  background-image:
    linear-gradient(to right,  rgba(190, 30, 45, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 30, 45, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Pin dots */
.bg-dots {
  background-image: radial-gradient(rgba(190, 30, 45, 0.16) 1.7px, transparent 1.8px);
  background-size: 26px 26px;
}

.bg-dots-light {
  background-image: radial-gradient(rgba(250, 235, 205, 0.16) 1.7px, transparent 1.8px);
  background-size: 26px 26px;
}

/* The organic edge between two panels; overlaps by a hair to avoid seams */
.blob-divider { position: relative; z-index: 2; line-height: 0; margin-bottom: -1px; }

/* Panels stack cleanly; content sits above the wash */
.panel { position: relative; z-index: 0; }
.panel > .layer { position: relative; z-index: 1; }

/* Buttons ================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: Jost, ui-sans-serif, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red-600); color: var(--cream-50); }
.btn-red:hover { background: var(--red-500); box-shadow: 0 8px 20px -8px rgba(190, 30, 45, 0.6); }

.btn-navy { background: var(--navy-600); color: var(--cream-50); }
.btn-navy:hover { background: var(--navy-500); box-shadow: 0 8px 20px -8px rgba(30, 42, 74, 0.6); }

/* The squared outline button from the reference landing page */
.btn-outline {
  background: transparent;
  color: var(--red-600);
  border: 1.5px solid var(--red-600);
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.btn-outline:hover { background: var(--red-600); color: var(--cream-50); }

.btn-outline-cream {
  background: transparent;
  color: var(--cream-100);
  border: 1.5px solid rgba(250, 235, 205, 0.45);
}
.btn-outline-cream:hover { background: var(--cream-50); color: var(--navy-700); border-color: var(--cream-50); }

/* Cards ==================================================================== */

.card {
  position: relative;
  background: var(--cream-50);
  border-radius: 14px;
  border: 1px solid rgba(43, 42, 46, 0.1);
}

/* Stitched card — dashed inner rule, like the reference banners */
.card-stitch::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed rgba(190, 30, 45, 0.32);
  border-radius: 8px;
  pointer-events: none;
}

.card-navy { background: var(--navy-500); border-color: rgba(250, 235, 205, 0.14); }
.card-navy.card-stitch::after { border-color: rgba(250, 235, 205, 0.28); }

/* The dashed roundel badge from the reference cover */
.badge-round {
  position: relative;
  border-radius: 999px;
  border: 1.5px dashed var(--red-600);
}

/* Same dashed cut line, but on a softly rounded panel rather than a circle */
.badge-soft {
  position: relative;
  border-radius: 2rem;
  border: 1.5px dashed var(--red-600);
}

/* Photos ================================================================== */

.photo {
  background: var(--cream-50);
  padding: 9px;
  border-radius: 10px;
  box-shadow: 0 16px 34px -22px rgba(43, 42, 46, 0.5);
}
.photo-inner { overflow: hidden; border-radius: 5px; background: var(--cream-200); display: block; }

/* Links ==================================================================== */

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.link-underline:hover { background-size: 100% 1.5px; }

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background-image: linear-gradient(to right, var(--red-600) 0 6px, transparent 6px 11px);
  background-size: 11px 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Motion =================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

.stitch-draw path,
.stitch-draw line {
  stroke-dasharray: 8 8;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stitch-draw.is-in path,
.stitch-draw.is-in line { stroke-dashoffset: 0; }

/* Slow drift for the decorative flat objects */
@keyframes float-a { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(4deg); } }
@keyframes float-b { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(7px) rotate(-5deg); } }
.float-a { animation: float-a 7s ease-in-out infinite; }
.float-b { animation: float-b 9s ease-in-out infinite; }

/* Mobile menu ============================================================== */

.menu-panel {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Gallery ================================================================== */

.masonry { column-gap: 0.85rem; columns: 2; }
@media (min-width: 768px)  { .masonry { columns: 3; column-gap: 1.1rem; } }
@media (min-width: 1280px) { .masonry { columns: 4; column-gap: 1.25rem; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.85rem;
  position: relative;
  display: block;
  width: 100%;
  background: var(--cream-50);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 12px 26px -20px rgba(43, 42, 46, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
@media (min-width: 768px)  { .masonry-item { margin-bottom: 1.1rem; } }
@media (min-width: 1280px) { .masonry-item { margin-bottom: 1.25rem; } }

.masonry-item .shot { position: relative; overflow: hidden; display: block; border-radius: 6px; background: var(--cream-200); }
.masonry-item img { display: block; width: 100%; }
.masonry-item .cap {
  display: block;
  padding: 0.55rem 0.2rem 0.15rem;
  font-family: Jost, ui-sans-serif, sans-serif;
  color: var(--muted);
  text-align: center;
}
.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 36px -22px rgba(43, 42, 46, 0.55);
  z-index: 2;
}
.masonry-item:hover .shot { box-shadow: inset 0 0 0 2px var(--red-600); }

.filter-btn { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.filter-btn:hover { transform: translateY(-1px); }

/* Lightbox ================================================================= */

#lightbox { transition: opacity 0.26s ease; }
#lightbox.is-hidden { opacity: 0; pointer-events: none; }
#lightbox .lb-frame { animation: lb-in 0.38s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* Before / after slider ==================================================== */

.ba { position: relative; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; border-radius: 5px; }
.ba img { display: block; width: 100%; pointer-events: none; }
.ba .clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba .clip img { position: absolute; inset: 0; height: 100%; width: auto; max-width: none; }
.ba .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cream-50);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--red-600);
  color: var(--cream-50);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(43, 42, 46, 0.4);
  pointer-events: none;
}
.ba .tag {
  position: absolute;
  top: 0.5rem;
  font-family: Jost, ui-sans-serif, sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--cream-50);
  color: var(--navy-600);
  pointer-events: none;
}

/* Marquee ================================================================== */

.marquee { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Price list =============================================================== */

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.78rem 0;
  border-bottom: 1px dashed rgba(43, 42, 46, 0.18);
}
.price-row:last-child { border-bottom: 0; }
.price-row dt { font-size: 15px; color: var(--ink); }
.price-row dd {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--red-600);
  white-space: nowrap;
}
.price-row .leader { flex: 1; border-bottom: 1.5px dotted rgba(43, 42, 46, 0.22); transform: translateY(-4px); }
.price-row .from {
  font-family: Jost, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Sticky mobile action bar ================================================= */

.action-bar { padding-bottom: env(safe-area-inset-bottom); }

/* Accessibility ============================================================ */

:focus-visible { outline: 2.5px solid var(--red-600); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stitch-draw path, .stitch-draw line { stroke-dashoffset: 0; }
}

@media print { .no-print { display: none !important; } }
