/* The Night Edit — static design system
   Charcoal / Warm White / Champagne Gold */

:root {
  --charcoal: #111111;
  --charcoal-deep: #0a0a0a;
  --charcoal-soft: #181818;
  --charcoal-lift: #1e1c19;
  --warm: #f5f1e8;
  --warm-dim: rgba(245, 241, 232, 0.72);
  --warm-faint: rgba(245, 241, 232, 0.48);
  --gold: #b8955a;
  --gold-bright: #c9ad78;
  --gold-line: rgba(184, 149, 90, 0.38);
  --gold-wash: rgba(184, 149, 90, 0.12);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --header: 4.25rem;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--warm);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-bright);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--warm);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.1rem);
  margin: 0.35rem 0 1rem;
}

h2 {
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--warm-dim);
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
}

.gold-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.25rem 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--warm);
  border-color: var(--gold-line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-line);
}

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

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

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: var(--warm-dim);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--warm);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.lang a,
.lang span {
  color: var(--warm-faint);
  text-decoration: none;
  padding: 0.45rem 0.25rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.lang .is-active {
  color: var(--gold);
}

.menu-btn {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--warm);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.header-cta {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gold-line);
  background: var(--charcoal-deep);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--warm);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.18) 0%, rgba(11, 11, 11, 0.42) 38%, rgba(11, 11, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.12) 55%);
}

.hero-copy {
  padding: 6.5rem 0 5.5rem;
  max-width: 42rem;
}

.hero h1 {
  text-wrap: balance;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--charcoal-soft);
}

.section-dark {
  background: var(--charcoal-deep);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--charcoal-lift);
  border: 1px solid var(--gold-line);
  padding: 1.4rem 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: inherit;
}

.card h3 {
  font-size: 1.7rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: linear-gradient(180deg, rgba(30, 28, 25, 0.95) 0%, rgba(17, 17, 17, 0.95) 100%);
  border: 1px solid var(--gold-line);
  padding: 1.35rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 14.5rem;
}

.service-card::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  margin-bottom: 0.15rem;
}

.service-card svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
}

.service-card h3 {
  font-size: 1.35rem;
  margin: 0;
}

.service-card p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}

.service-card .partner-note {
  font-size: 0.78rem;
  color: var(--warm-faint);
  letter-spacing: 0.02em;
}

.service-card .btn {
  align-self: flex-start;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
}

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  line-height: 1.45;
}

.consent input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.sticky-cta.sticky-single {
  grid-template-columns: 1fr;
}

/* Entertainment / Rafael */

.feature-card {
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--gold-line);
  background: var(--charcoal);
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  object-position: 50% 18%;
}

.feature-copy {
  padding: 0 1.4rem 1.5rem;
}

.meet {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.meet img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
}

.facts {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0;
}

.facts div {
  border-top: 1px solid var(--gold-line);
  padding-top: 0.75rem;
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  color: var(--warm-dim);
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.gallery img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.gallery figure:first-child {
  grid-column: 1 / -1;
}

.gallery figure:first-child img {
  height: 16rem;
}

.gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

/* Trust / steps */

.trust-grid,
.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-item,
.step {
  padding: 1.2rem 0;
  border-top: 1px solid var(--gold-line);
}

.step-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--gold-line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.75rem 1.1rem 0;
  font-weight: 500;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.05rem;
  color: var(--gold);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding-bottom: 1.1rem;
}

/* Form */

.form {
  position: relative;
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-dim);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gold-line);
  background: var(--charcoal-deep);
  color: var(--warm);
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: var(--radius);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-note {
  font-size: 0.92rem;
}

.contact-inline {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-line);
}

/* Final CTA */

.final-cta {
  text-align: center;
  padding: 5rem 0;
}

.final-cta h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.final-cta .btn-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--gold-line);
  padding: 2.5rem 0 7.5rem;
  background: var(--charcoal-deep);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-logo {
  width: min(16rem, 100%);
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
}

.fine-print {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--warm-faint);
}

/* Sticky mobile CTA */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(11, 11, 11, 0.94);
  border-top: 1px solid var(--gold-line);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.55rem;
}

.sticky-cta .btn {
  width: 100%;
  min-height: 2.85rem;
  font-size: 0.75rem;
}

/* Simple pages */

.page-simple {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 6rem 0;
}

.page-simple h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

/* Analytics placeholder comment lives in HTML */

@media (min-width: 700px) {
  .card-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: 14rem;
  }

  .gallery figure:first-child img {
    height: 22rem;
  }

  .trust-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split,
  .meet {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .feature-card img {
    min-height: 18rem;
  }

  .gallery {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery figure:first-child {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .gallery img,
  .gallery figure:first-child img {
    height: 100%;
    min-height: 12rem;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .sticky-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    padding: 8rem 0 6.5rem;
  }
}

.profile-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
}

.profile-instagram svg {
  flex-shrink: 0;
}

.profile-instagram:hover span,
.profile-instagram:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
