/* ==========================================================================
   NoName Bar — Diano Marina
   Design system: dark, atmospheric, gold + cream + black
   ========================================================================== */

:root {
  /* Palette */
  --bg-deep: #07060a;
  --bg-base: #0c0a0d;
  --bg-surface: #14111a;
  --bg-elevated: #1c1822;

  --ink-cream: #f1e7d3;
  --ink-paper: #ddd0b6;
  --ink-muted: #8a7f6e;
  --ink-faded: #5a5247;

  --gold: #c9a35a;
  --gold-bright: #e2bd75;
  --gold-deep: #8c6f3a;
  --gold-glow: rgba(201, 163, 90, 0.35);

  --line: rgba(221, 208, 182, 0.12);
  --line-strong: rgba(221, 208, 182, 0.22);

  /* Type */
  --font-display: "Cinzel", "Cormorant Garamond", "Playfair Display", serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --font-italic: "Cormorant Garamond", serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Sizing */
  --size-1: clamp(11px, 0.7vw, 13px);
  --size-2: clamp(13px, 0.85vw, 15px);
  --size-3: clamp(15px, 1vw, 17px);
  --size-4: clamp(17px, 1.15vw, 20px);
  --size-5: clamp(20px, 1.4vw, 24px);
  --size-6: clamp(24px, 1.8vw, 30px);
  --size-7: clamp(30px, 2.4vw, 42px);
  --size-8: clamp(42px, 4vw, 64px);
  --size-9: clamp(56px, 6vw, 96px);
  --size-10: clamp(72px, 8vw, 144px);

  --tracking-wide: 0.18em;
  --tracking-wider: 0.32em;
  --tracking-widest: 0.5em;

  /* Atmosphere intensity 0..1 (Tweaks-controlled) */
  --fx-intensity: 1;
  --fx-particles: 1;
  --fx-vignette: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-deep);
  color: var(--ink-paper);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--gold-bright); }

/* ==========================================================================
   ATMOSPHERE LAYER  — fixed full-viewport background effects
   ========================================================================== */

.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Deep dimensional gradient */
.atmos::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 163, 90, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(80, 30, 30, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 40%, rgba(40, 30, 80, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0d0a0e 50%, var(--bg-deep) 100%);
}

/* Vignette */
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 90%);
  opacity: var(--fx-vignette);
}

/* Film grain */
.atmos-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' 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.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Drifting smoke */
.atmos-smoke {
  position: fixed;
  inset: -10% -10%;
  z-index: 1;
  pointer-events: none;
  opacity: calc(0.45 * var(--fx-intensity));
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(120, 100, 80, 0.12), transparent 70%),
    radial-gradient(ellipse 800px 500px at 80% 70%, rgba(60, 50, 90, 0.10), transparent 70%),
    radial-gradient(ellipse 500px 300px at 50% 90%, rgba(180, 140, 80, 0.06), transparent 70%);
  animation: smoke-drift 60s ease-in-out infinite;
  filter: blur(40px);
}

@keyframes smoke-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-3%, 2%) scale(1.05); }
  66% { transform: translate(3%, -2%) scale(0.98); }
}

/* Particles canvas */
.atmos-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--fx-particles);
}

/* All page content sits above atmosphere */
.page {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink-cream);
}

.script {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--size-2);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow.cream { color: var(--ink-muted); }

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink-cream);
}

.lede {
  font-family: var(--font-serif);
  font-size: var(--size-5);
  line-height: 1.55;
  color: var(--ink-paper);
  font-weight: 400;
}

.lede em {
  font-style: italic;
  color: var(--gold);
}

p { color: var(--ink-paper); }

/* Decorative divider */
.rule {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 30%, var(--gold-deep) 70%, transparent);
}
.rule.center { justify-content: center; }
.rule .diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter 0.4s ease, background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  padding: 16px 48px;
  background: rgba(7, 6, 10, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.6s ease;
  /* tint the white logo to match the gold palette */
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(580%) hue-rotate(2deg) brightness(95%) contrast(88%);
}
.nav-brand:hover img { transform: rotate(15deg); }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text .nb-1 {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: var(--tracking-wider);
  color: var(--ink-cream);
}
.nav-brand-text .nb-2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-paper);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: left 0.35s ease, right 0.35s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--gold-deep);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--gold-glow);
}

/* Mobile menu burger */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  width: 16px; height: 1px; background: var(--gold);
}

@media (max-width: 880px) {
  .nav { padding: 16px 20px; gap: 12px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; order: 3; }

  /* Mobile CTA: no border, two centered lines, pushed right */
  .nav-cta {
    border: none;
    padding: 4px 0;
    margin-left: auto;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    max-width: 90px;
    display: inline-block;
  }
  .nav-cta:hover {
    background: transparent;
    color: var(--gold-bright);
    box-shadow: none;
  }

  /* Shrink brand on mobile to leave room */
  .nav-brand img { width: 40px; height: 40px; }
  .nav-brand-text .nb-1 { font-size: 13px; }
  .nav-brand-text .nb-2 { font-size: 11px; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  background: transparent;
  text-decoration: none;
}

.btn-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: -1;
}
.btn-gold:hover { color: var(--bg-deep); }
.btn-gold:hover::before { transform: scaleX(1); }

.btn-ghost {
  color: var(--ink-cream);
  border-bottom: 1px solid var(--gold-deep);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--gold); border-bottom-color: var(--gold); }

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.container-narrow { max-width: 900px; }

.section {
  position: relative;
  padding: 140px 0;
}

.section-tight { padding: 90px 0; }

@media (max-width: 760px) {
  .container { padding: 0 24px; }
  .section { padding: 90px 0; }
}

/* ==========================================================================
   HERO — generic for non-home pages
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 200px 0 100px;
}

.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero .title {
  font-size: var(--size-9);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-cream);
  line-height: 0.95;
}
.page-hero .title .gold { color: var(--gold); font-style: italic; font-family: var(--font-serif); text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.35s; }
.reveal.delay-4 { transition-delay: 0.5s; }
.reveal.delay-5 { transition-delay: 0.65s; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.foot {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.foot-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(580%) hue-rotate(2deg) brightness(95%) contrast(88%);
  opacity: 0.85;
}

.foot-brand p {
  color: var(--ink-muted);
  font-size: var(--size-3);
  max-width: 320px;
  line-height: 1.55;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}

.foot-col ul { list-style: none; }
.foot-col li {
  margin-bottom: 12px;
  font-size: var(--size-3);
}
.foot-col a {
  color: var(--ink-paper);
}
.foot-col a:hover { color: var(--gold); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: var(--size-1);
  color: var(--ink-faded);
  font-family: var(--font-display);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.foot-bottom a { color: var(--ink-muted); }

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-bottom { flex-direction: column; gap: 18px; text-align: center; }
}

/* ==========================================================================
   PLACEHOLDER IMAGE PANELS — SVG/gradient evocative imagery
   ========================================================================== */

.evoke {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}
.evoke::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, var(--g1, rgba(201, 163, 90, 0.25)), transparent 60%),
    radial-gradient(circle at 75% 80%, var(--g2, rgba(120, 50, 50, 0.35)), transparent 60%),
    radial-gradient(circle at 50% 50%, var(--g3, rgba(40, 25, 50, 0.5)), transparent 70%);
}
.evoke::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 0.85   0 0 0 0 0.6   0 0 0 0.25 0'/></filter><rect width='400' height='400' filter='url(%23n)'/></svg>");
  background-size: 400px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.evoke > * { position: relative; z-index: 2; }

/* Evocative cocktail glass SVG illustrations */
.evoke .glass-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ==========================================================================
   PRIVATE — for the tweaks panel toggle in nav
   ========================================================================== */

#tweaks-panel-root { position: relative; z-index: 100; }
