/* ==========================================================
   Tayna Makeup — estilos (réplica fiel do site Lovable)
   HTML + CSS + JavaScript puro, sem frameworks
   ========================================================== */

:root {
  --radius: 1rem;
  --background: oklch(14% 0.005 60);
  --foreground: oklch(95% 0.02 85);
  --card: oklch(19% 0.008 60);
  --primary: oklch(80% 0.11 85);
  --primary-foreground: oklch(14% 0.005 60);
  --muted-foreground: oklch(72% 0.03 80);
  --border: oklch(80% 0.11 85 / 0.2);
  --gradient-gold: linear-gradient(
    120deg,
    oklch(68% 0.11 70),
    oklch(88% 0.1 90),
    oklch(70% 0.12 75)
  );
  --shadow-gold: 0 20px 50px -20px oklch(80% 0.11 85 / 0.45);

  --font-sans: "Jost", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 72rem;
}

/* ---------- Reset (equivalente ao preflight) ---------- */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-sans);
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}
h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
ul {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
  cursor: default;
}

/* ---------- Utilitários de marca ---------- */
.font-display {
  font-family: var(--font-display);
}
.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gold {
  background: var(--gradient-gold);
}
.muted {
  color: var(--muted-foreground);
}
.text-primary {
  color: var(--primary);
}
.t {
  transition: all 0.15s var(--ease);
}

.min-h-screen {
  min-height: 100vh;
}

/* ---------- Animação de entrada ---------- */
@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.animate-rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.delay-200 {
  animation-delay: 200ms;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  background-color: color-mix(in oklab, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-nav {
  margin-inline: auto;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  letter-spacing: 0.2em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-instagram {
  display: none;
  color: var(--muted-foreground);
}
.nav-instagram:hover {
  color: var(--primary);
}
.nav-cta {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.15s var(--ease);
}
.btn-gold {
  background: var(--gradient-gold);
  font-weight: 500;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-gold);
}
.btn-grow:hover {
  transform: scale(1.05);
}
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  background-color: color-mix(in oklab, var(--primary) 10%, transparent);
}
.btn-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-row.center {
  justify-content: center;
}

/* ---------- Tipografia comum ---------- */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}
.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  margin-inline: auto;
  max-width: var(--container);
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 8rem 1.25rem 5rem;
}
.hero h1 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 0.95;
}
.hero-lead {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  font-weight: 300;
  color: var(--muted-foreground);
}
.hero-media {
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: -0.75rem;
  border-radius: 2rem;
  background: var(--gradient-gold);
  opacity: 0.3;
  filter: blur(40px);
}
.hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2rem;
  object-fit: cover;
}

/* ---------- Seções ---------- */
.section {
  margin-inline: auto;
  max-width: var(--container);
  padding: 4rem 1.25rem;
}

/* Galeria (masonry em colunas) */
.gallery {
  margin-top: 3rem;
  columns: 2;
  column-gap: 1rem;
}
.gallery-item {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  break-inside: avoid;
}
.gallery-item img {
  width: 100%;
  transition: all 0.7s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-more {
  margin-top: 2rem;
  text-align: center;
}
.gallery-more a {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.gallery-more a:hover {
  text-decoration: underline;
}

/* Serviços */
.services {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
.card {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background-color: var(--card);
}
.service-card {
  padding: 1.75rem;
  transition: all 0.15s var(--ease);
}
.service-card {
  display: block;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-gold);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
}
.service-card .desc {
  margin-top: 0.5rem;
  font-weight: 300;
  color: var(--muted-foreground);
}
.price {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.service-card .price {
  margin-top: 1rem;
}
.service-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-link span {
  margin-left: 0.35rem;
}
.service-card-prices {
  line-height: 1.7;
}

/* Páginas individuais de serviços */
.service-detail {
  margin-inline: auto;
  width: min(75rem, calc(100% - 2.5rem));
  padding-block: clamp(7rem, 10vw, 9rem) clamp(3rem, 6vw, 5rem);
}
.service-detail-grid {
  display: grid;
  grid-template-areas: "intro" "photo" "information" "actions";
  align-items: start;
  gap: 2rem;
}
.service-detail-grid > * {
  min-width: 0;
}
.service-intro {
  grid-area: intro;
}
.service-detail .eyebrow {
  letter-spacing: 0.22em;
  line-height: 1.7;
}
.service-detail h1 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.service-detail-lead {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--foreground);
}
.service-description {
  margin-top: 2rem;
}
.service-description-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.625rem;
  line-height: 1.25;
}
.service-detail-copy {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.service-detail-copy + .service-detail-copy {
  margin-top: 0.875rem;
}
.service-information {
  grid-area: information;
}
.service-prices {
  padding-block: 1.25rem 0.25rem;
  border-top: 1px solid var(--border);
}
.service-detail-price {
  margin-top: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.service-includes {
  margin-top: 1.75rem;
}
.service-info-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--primary);
}
.service-price-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
  color: var(--muted-foreground);
}
.service-price-option dt {
  min-width: 0;
}
.service-price-option dd {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.service-includes ul {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  list-style: disc;
  padding-left: 1.25rem;
}
.service-includes li {
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.6;
}
.service-includes li::marker {
  color: var(--primary);
}
.service-photo-wrap {
  grid-area: photo;
  position: relative;
  width: 100%;
  max-width: 30rem;
  justify-self: center;
  isolation: isolate;
}
.service-photo-wrap::before {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0.75rem;
  border-radius: 1.25rem;
  background: var(--gradient-gold);
  opacity: 0.12;
  filter: blur(24px);
}
.service-photo,
.service-photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
}
.service-photo {
  height: auto;
  object-fit: cover;
  object-position: center;
}
.service-photo[hidden] {
  display: none;
}
.service-photo-placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse at 50% 25%,
      oklch(80% 0.11 85 / 0.08),
      transparent 70%
    ),
    var(--card);
  text-align: center;
  color: var(--muted-foreground);
}
.service-photo-placeholder[hidden] {
  display: none;
}
.service-photo-placeholder strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
}
.service-photo-placeholder span {
  font-size: 0.875rem;
}
.service-actions {
  grid-area: actions;
}
.service-actions .btn-row {
  margin-top: 0;
}
.service-actions .btn {
  text-align: center;
}
.service-detail :is(p, h1, h2, li, dt, a, span) {
  overflow-wrap: anywhere;
}
.service-detail a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
}
.service-back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--primary);
  font-size: 0.875rem;
}
.service-back:hover {
  text-decoration: underline;
}

/* CTA */
.cta-section {
  padding: 5rem 1.25rem;
}
.cta-box {
  margin-inline: auto;
  max-width: 56rem;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2.5rem;
  text-align: center;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}
.cta-box p {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: var(--muted-foreground);
}
.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
}
.site-footer .mt-2 {
  margin-top: 0.5rem;
}
.site-footer .mt-1 {
  margin-top: 0.25rem;
}
.site-footer a:hover {
  color: var(--primary);
}

/* ==========================================================
   Página Agenda
   ========================================================== */
.agenda-main {
  margin-inline: auto;
  max-width: var(--container);
  display: grid;
  gap: 2.5rem;
  padding: 8rem 1.25rem 5rem;
}
.agenda-main h1 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
}
.step-title {
  margin-top: 2rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.step-title.first {
  margin-top: 2.5rem;
}

.chips {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  transition: all 0.15s var(--ease);
}
.slot {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
}
.chip:hover {
  border-color: var(--primary);
}
.is-selected,
.is-selected:hover {
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.days {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.day {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 0.5rem 0.25rem;
  text-align: center;
  transition: all 0.15s var(--ease);
}
.day:hover {
  border-color: var(--primary);
}
.day:disabled {
  opacity: 0.3;
}
.day:disabled:hover {
  border-color: var(--border);
}
.day.is-selected {
  background-color: var(--primary);
}
.day .dow {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
}
.day .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
}
.day .mon {
  font-size: 10px;
  text-transform: uppercase;
}

.empty-slots {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: var(--muted-foreground);
}

.agenda-aside-img {
  margin-bottom: 1.25rem;
  display: none;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  object-fit: cover;
}
.order-card {
  padding: 1.5rem;
}
.order-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
}
.order-service {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  color: var(--muted-foreground);
}
.order-date {
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
  text-transform: capitalize;
}
.order-cta {
  margin-top: 1.25rem;
  display: block;
  border-radius: 9999px;
  padding: 0.75rem 0;
  text-align: center;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold);
  transition: all 0.15s var(--ease);
}
.order-cta:hover {
  transform: scale(1.02);
}
.order-note {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

.info-card {
  margin-top: 1rem;
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
}
.info-card .studio {
  margin-top: 0.5rem;
  font-weight: 300;
  color: var(--muted-foreground);
}
.info-card ul {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}
.info-card li + li {
  margin-top: 0.25rem;
}
.info-card .home {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}
.info-card .home span {
  color: var(--foreground);
}

/* ==========================================================
   Responsivo (mesmos breakpoints do Tailwind)
   ========================================================== */
@media (min-width: 40rem) {
  /* sm */
  .nav-instagram {
    display: block;
  }
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .days {
    gap: 0.5rem;
  }
  .day {
    padding: 0.75rem;
  }
}
@media (min-width: 48rem) {
  /* md */
  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .gallery {
    columns: 3;
  }
  .cta-box {
    padding: 4rem;
  }
  .service-detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas: "intro photo" "information photo" "actions photo";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
  .service-photo-wrap {
    max-width: none;
  }
  .service-includes ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
  }
}
@media (max-width: 24rem) {
  body:has(.service-detail) .brand {
    font-size: 1.125rem;
    letter-spacing: 0.12em;
  }
  body:has(.service-detail) .site-nav {
    gap: 0.75rem;
  }
  body:has(.service-detail) .nav-cta {
    padding-inline: 1rem;
  }
  .service-detail .btn-row {
    flex-direction: column;
  }
}
@media (min-width: 64rem) {
  /* lg */
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .agenda-main {
    grid-template-columns: 1fr 340px;
  }
  .agenda-aside {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
  .agenda-aside-img {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-rise {
    animation: none;
  }
}

/* Aviso quando o banco não responde */
.load-error {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 60;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--foreground);
}
.agenda-load-status {
  margin: 0.75rem 0;
  border: 1px solid #8d554c;
  border-radius: var(--radius);
  background: #382421;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.875rem;
}
.agenda-load-status:not(.is-error) {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--card) 88%, var(--primary));
}
.agenda-skeleton {
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--card) 25%, #332a20 40%, var(--card) 55%);
  background-size: 220% 100%;
  animation: agenda-shimmer 1.4s ease-in-out infinite;
}
.skeleton-chip {
  width: 9rem;
  height: 2.5rem;
  border-radius: 9999px;
}
.skeleton-day {
  height: 5.25rem;
}
.agenda-ready {
  animation: agenda-appear 0.32s ease-out both;
}
@keyframes agenda-shimmer {
  to { background-position-x: -220%; }
}
@keyframes agenda-appear {
  from { opacity: 0.55; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .agenda-skeleton { animation: none; }
  .agenda-ready { animation: none; }
}
