/* N1 Chauffeured — base layer: tokens, layout, header, hero, buttons, footer, WhatsApp */

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

html {
  scroll-behavior: smooth;
}

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

:root {
  --bg: #0a0b0d;
  --bg-elev: #14161a;
  --surface: #1b1d22;
  --gold: #c9a96b;
  --gold-soft: #e0c98a;
  --gold-strong: #b8954f;
  --ink: #f5f1e8;
  --ink-muted: #9a9692;
  --ink-faint: #6a6764;
  --rule: rgba(255, 255, 255, 0.08);
  --header-h: 72px;
  --container: min(1120px, 92vw);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

body.n1-site,
html.n1-site {
  margin: 0;
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.n1-site {
  padding-top: var(--header-h);
}

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

a {
  color: var(--gold-soft);
}

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

.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 13, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 28px);
  width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.brand-mark img {
  width: 40px;
  height: 40px;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
}

.nav-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone-icon {
  flex-shrink: 0;
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5vw 20px;
    background: rgba(10, 11, 13, 0.98);
    border-bottom: 1px solid var(--rule);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .site-header.nav-open .nav-links {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-right {
    gap: 0;
  }

  .nav-phone,
  .nav-right > .btn-gold {
    display: none;
  }

  .hero {
    min-height: clamp(440px, 72svh, 620px);
    padding: clamp(28px, 6.5vw, 52px) 0 clamp(40px, 8vw, 68px);
  }

  .hero-media img {
    object-position: center 30%;
    transform: translate3d(0, 0, 0) scale(1.01);
    opacity: 0.5;
  }

  .hero-copy {
    max-width: 34rem;
  }
}

/* —— Buttons —— */
.btn {
  --mx: 0px;
  --my: 0px;
  --btn-lift: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mx), calc(var(--my) + var(--btn-lift)), 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s ease, opacity 0.3s ease;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: translateX(120%);
}

.btn-gold::before {
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(201, 169, 107, 0.18) 50%,
    transparent 70%);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: -25% -140%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 239, 201, 0.34) 50%, transparent 58%);
  transform: translateX(-35%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

body.motion-ready .btn-gold::after {
  opacity: 0.65;
  animation: goldFlow 4.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.btn:active {
  --btn-lift: 1px;
}

.btn-gold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 45%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(135deg, #16181c 0%, #0a0b0e 100%);
  color: var(--gold-soft);
  border-color: rgba(201, 169, 107, 0.45);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-gold:hover {
  --btn-lift: -1px;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  --btn-lift: -1px;
  color: var(--gold);
  border-color: rgba(201, 169, 107, 0.8);
}

.btn-ghost:focus-visible {
  outline: 2px solid rgba(201, 169, 107, 0.7);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  html.n1-site,
  body.n1-site {
    background-color: #0b0d11;
    background-image:
      linear-gradient(180deg, #0b0d11 0%, #11161d 52%, #0f1319 100%),
      repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 6px);
    background-blend-mode: normal, soft-light;
  }

  .site-header {
    background: linear-gradient(120deg, rgba(11, 15, 28, 0.95) 0%, rgba(17, 20, 28, 0.94) 48%, rgba(28, 21, 14, 0.94) 100%);
    border-bottom-color: rgba(130, 166, 240, 0.24);
    box-shadow: 0 10px 26px rgba(3, 6, 12, 0.5);
  }

  .nav-links {
    background: linear-gradient(160deg, rgba(8, 12, 24, 0.98) 0%, rgba(12, 16, 27, 0.98) 60%, rgba(24, 19, 13, 0.98) 100%);
    border-bottom-color: rgba(130, 166, 240, 0.24);
  }

  .nav-link {
    color: #c7d4ef;
  }

  .btn-gold {
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    color: #15110b;
    border-color: rgba(251, 222, 158, 0.92);
    background:
      linear-gradient(180deg, rgba(255, 248, 228, 0.95) 0%, rgba(239, 193, 108, 0.96) 52%, rgba(179, 128, 56, 0.98) 100%);
    box-shadow:
      0 10px 24px rgba(100, 72, 32, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      inset 0 -1px 0 rgba(123, 79, 28, 0.55);
  }

  .btn-gold:hover {
    color: #120d09;
  }

  .brand-mark {
    display: none;
  }

  .brand {
    gap: 0;
  }

  .brand-sub {
    display: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 10vw, 100px) 0 clamp(64px, 12vw, 120px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(44px);
}

.hero-bg::before {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  top: -34%;
  left: -16%;
  background: radial-gradient(circle at 50% 50%, rgba(44, 76, 147, 0.36) 0%, rgba(44, 76, 147, 0) 68%);
  animation: heroAuroraA 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  width: min(48vw, 620px);
  aspect-ratio: 1;
  right: -10%;
  bottom: -36%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 107, 0.24) 0%, rgba(201, 169, 107, 0) 70%);
  animation: heroAuroraB 15s ease-in-out infinite alternate;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.55) 48%, rgba(10, 11, 13, 0.35) 100%);
}

.hero-scrim::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(201, 169, 107, 0) 18%, rgba(201, 169, 107, 0.11) 50%, rgba(201, 169, 107, 0) 82%);
  transform: translateX(-35%);
  opacity: 0.75;
  animation: heroSweep 11s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 40rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 16px;
  border: 1px solid rgba(201, 169, 107, 0.35);
  border-radius: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.2rem + 3.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title-accent {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta-arrow {
  margin-left: 4px;
}

@keyframes goldFlow {
  0% {
    transform: translateX(-62%) skewX(-18deg);
  }
  55% {
    transform: translateX(58%) skewX(-18deg);
  }
  100% {
    transform: translateX(58%) skewX(-18deg);
  }
}

@keyframes heroAuroraA {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(0.98);
    opacity: 0.56;
  }
  100% {
    transform: translate3d(8%, 7%, 0) scale(1.12);
    opacity: 0.3;
  }
}

@keyframes heroAuroraB {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
    opacity: 0.38;
  }
  100% {
    transform: translate3d(-10%, -10%, 0) scale(1.08);
    opacity: 0.2;
  }
}

@keyframes heroSweep {
  0% {
    transform: translateX(-45%);
    opacity: 0;
  }
  16% {
    opacity: 0.82;
  }
  54% {
    opacity: 0.62;
  }
  100% {
    transform: translateX(45%);
    opacity: 0;
  }
}

/* —— Footer —— */
.site-footer {
  padding: clamp(48px, 8vw, 80px) 0 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-elev);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
  padding-bottom: 48px;
}

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--gold);
}

.footer-col p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 18px 0 28px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: clamp(400px, 66svh, 520px);
    padding: 24px 0 36px;
  }

  .hero-media img {
    object-position: center 26%;
    transform: translate3d(0, 0, 0) scale(1);
  }

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

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

  .btn-gold::after,
  .hero-bg::before,
  .hero-bg::after,
  .hero-scrim::after {
    animation: none;
  }

  .hero-bg::before,
  .hero-bg::after,
  .hero-scrim::after {
    opacity: 0.3;
    transform: none;
  }
}

/* —— WhatsApp —— */
.wa-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
}

.wa-chat-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.wa-chat-fab:hover {
  transform: scale(1.05);
}

.wa-chat-bubble {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(280px, 86vw);
  padding: 16px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-chat-bubble--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wa-chat-bubble-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.wa-chat-bubble-kicker {
  margin: 0 0 6px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.wa-chat-bubble-text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.wa-chat-bubble-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #25d366;
}

@media (max-width: 640px) {
  .wa-chat-bubble {
    width: min(220px, 70vw);
    bottom: 62px;
    padding: 12px 14px 11px;
  }

  .wa-chat-bubble-close {
    top: 6px;
    right: 8px;
    font-size: 1.05rem;
  }

  .wa-chat-bubble-kicker {
    margin-bottom: 4px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .wa-chat-bubble-text {
    margin: 0 0 9px;
    font-size: 0.8rem;
  }

  .wa-chat-bubble-cta {
    font-size: 0.64rem;
  }
}
