/* ------------------------------------------------------------------ */
/* London Studio VIP — custom CSS on top of Tailwind                  */
/* Aesthetic: editorial barber · carbon + chalk + a single barber-red */
/* accent. No gold. No serif display. Sans-grotesque with light wonk. */
/* ------------------------------------------------------------------ */

html { scroll-behavior: smooth; }
body {
  font-feature-settings: "ss01", "cv11", "liga";
  -webkit-font-smoothing: antialiased;
}

/* Bricolage Grotesque looks great with a subtle wonk — keep grade at 0 */
.font-display { font-variation-settings: "wght" 500, "wdth" 100, "opsz" 32; }

/* ------------------ Mobile menu (CSS-only) ------------------ */
.nav-icon-close { display: none; }
#nav-toggle:checked ~ label .nav-icon-open { display: none; }
#nav-toggle:checked ~ label .nav-icon-close { display: block; }
.mobile-menu { display: none; }
#nav-toggle:checked ~ .mobile-menu { display: block; }
#nav-toggle:checked ~ .mobile-menu nav a { padding-block: 0.25rem; }

/* ------------------ Grain ------------------ */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 300px 300px;
}

/* ------------------ Marquee ------------------ */
.marquee {
  animation: marquee 42s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
}

/* ------------------ Reveal on first paint ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.reveal:nth-of-type(1) { animation-delay: 0.05s; }
.reveal:nth-of-type(2) { animation-delay: 0.18s; }
.reveal:nth-of-type(3) { animation-delay: 0.30s; }
.reveal:nth-of-type(4) { animation-delay: 0.42s; }
.reveal:nth-of-type(5) { animation-delay: 0.54s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

/* ------------------ Service cards (image-backed, editorial) ------------------ */
.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  background: #15151a;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), border-color 0.3s;
}
.service-card > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.65) contrast(1.08);
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1), opacity 0.5s, filter 0.5s;
  z-index: 0;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,10,0.96) 0%, rgba(8,8,10,0.6) 45%, rgba(8,8,10,0.1) 100%);
  z-index: 1;
}
.service-card__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
}
@media (min-width: 640px) {
  .service-card__body { padding: 1.5rem; }
}
.service-card__num {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 0.78rem;
  color: rgba(220,85,95,0.55);
  letter-spacing: 0.08em;
}
.service-card__title {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.05;
  color: #f5f5f4;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
@media (min-width: 640px) {
  .service-card__title { font-size: 1.8rem; }
}
.service-card__sub {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.66rem;
  line-height: 1.4;
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.service-card__price {
  margin-top: 0.4rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.78rem;
  color: #f5f5f4;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.service-card:hover {
  border-color: rgba(220,85,95,0.4);
  transform: translateY(-2px);
}
.service-card:hover > img {
  opacity: 0.55;
  filter: grayscale(0.3) contrast(1.05);
  transform: scale(1.06);
}
.service-card:hover .service-card__title { color: #f4bfc4; }

.service-card--more {
  aspect-ratio: 4 / 5;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at top right, rgba(220,85,95,0.14), transparent 60%),
    #15151a;
  border: 1px dashed rgba(220,85,95,0.35);
}
@media (min-width: 640px) {
  .service-card--more { padding: 1.5rem; }
}

/* ------------------ Editorial gallery (real IG photos) ------------------ */
/* 3x2 desktop, 2x3 mobile, two cards span tall/wide */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-auto-rows: 280px; gap: 0.75rem; }
}
@media (max-width: 639px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
  background: #15151a;
}
.gallery-grid img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1), filter 0.5s;
  filter: grayscale(0.25) contrast(1.05);
}
.gallery-grid figure:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 639px) {
  .g-tall { grid-row: auto; }
  .g-wide { grid-column: span 2; }
}

/* ------------------ Social icons (cloned style from gnosixweb) ------------------ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: rgba(245,245,244,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.social-icon:hover {
  color: #f5f5f4;
  border-color: rgba(220,85,95,0.55);
  background-color: rgba(193,45,45,0.08);
}

/* ------------------ Language toggle ------------------ */
.lang-btn {
  color: rgba(245,245,244,0.5);
  transition: color 0.2s, background-color 0.2s;
}
.lang-btn:hover { color: #f5f5f4; }
.lang-btn.active {
  color: #08080a;
  background-color: #f5f5f4;
}

/* ------------------ ElevenLabs widget — coax into palette ------------------ */
elevenlabs-convai {
  --el-primary: #c12d2d;
  --el-accent: #f5f5f4;
  --el-background: #15151a;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
}

/* ------------------ Cal inline embed ------------------ */
#cal-embed iframe {
  width: 100% !important;
  min-height: 520px;
  border: 0;
  display: block;
  background: #0e0e10;
}
#cal-embed .cal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 520px;
  padding: 2rem;
  text-align: center;
  color: #bcbcbb;
}
#cal-embed .cal-placeholder .label {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-style: italic;
  font-size: 1.75rem;
  color: #dc555f;
  line-height: 1.1;
}
#cal-embed .cal-placeholder .note {
  font-size: 0.75rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #8a8a8a;
  max-width: 32ch;
}
#cal-embed .cal-placeholder .pill {
  font-size: 0.7rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #f5f5f4;
  border: 1px solid rgba(220,85,95,0.45);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
}

/* ------------------ Scrollbar ------------------ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #33333c; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #c12d2d; }

/* ------------------ Concierge placeholder (when no agent id) ------------------ */
.concierge-placeholder {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #1c1c22, #15151a);
  border: 1px solid rgba(220,85,95,0.4);
  color: #f5f5f4;
  padding: 0.9rem 1.2rem;
  border-radius: 9999px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.concierge-placeholder .dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #c12d2d;
  box-shadow: 0 0 12px #c12d2d;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: 0.6; }
}
