/* =========================================================
   Toronto Lux Limo — Global Stylesheet
   Aesthetic: Dark & cinematic. Deep charcoal base, warm
   ivory text, champagne gold accent. Editorial serif for
   headlines, clean sans for body, mono for metadata.
   ========================================================= */

:root {
  /* Colors */
  --ink:          #0a0a0a;      /* page base */
  --ink-2:        #111111;      /* cards, inset surfaces */
  --ink-3:        #1a1a1a;      /* hover / raised */
  --hairline:     rgba(201, 169, 97, 0.18);
  --hairline-2:   rgba(245, 241, 232, 0.08);
  --ivory:        #f5f1e8;      /* primary text */
  --ivory-dim:    rgba(245, 241, 232, 0.72);
  --ivory-mute:   rgba(245, 241, 232, 0.48);
  --gold:         #c9a961;      /* primary accent */
  --gold-bright:  #e3c892;      /* hover */
  --gold-deep:    #8a7548;

  /* Type */
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing */
  --page-pad: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain so the charcoal never feels flat */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  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'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ivory);
}

h1 { font-size: clamp(44px, 6.5vw, 96px); font-weight: 400; }
h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 400; }
h3 { font-size: clamp(22px, 2vw, 30px); }
h4 { font-size: clamp(18px, 1.4vw, 22px); }

h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lede {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
  color: var(--ivory-dim);
  max-width: 62ch;
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-mute);
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.wrap-narrow { max-width: 1100px; margin: 0 auto; padding-left: var(--page-pad); padding-right: var(--page-pad); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-sm { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }

.hairline { height: 1px; background: var(--hairline-2); width: 100%; }
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); width: 100%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(245, 241, 232, 0.25);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 12px 22px; font-size: 11px; }
.btn .arrow { display: inline-block; transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--hairline-2);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo svg { width: 36px; height: 36px; flex: none; }
.nav-logo-text {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 400;
}
.nav-logo-text em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; color: var(--ivory-dim); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 0; }
.nav-dropdown-trigger:hover { color: var(--gold); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  padding: 18px 4px;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ivory-dim);
  border-left: 1px solid transparent;
}
.nav-dropdown-menu a:hover { color: var(--gold); border-left-color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ivory);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--gold); }
.nav-phone::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.nav-mobile-toggle { display: none; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--ink);
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
  padding: 24px var(--page-pad);
  z-index: 90;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { margin: 0; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: var(--ivory);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--hairline-2);
  transition: color 0.2s ease;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu li:last-child a { border-bottom: none; }

@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .nav-mobile-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--hairline-2);
    background: transparent;
  }
  .nav-mobile-toggle svg { width: 18px; height: 18px; stroke: var(--ivory); }
}

/* ---------- Footer ---------- */

.footer {
  background: #060606;
  border-top: 1px solid var(--hairline-2);
  padding: 80px var(--page-pad) 40px;
  margin-top: 80px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(600px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto 60px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  color: var(--ivory-mute);
  font-size: 14px;
  margin-top: 20px;
  max-width: 36ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ivory-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--hairline-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--ivory-mute);
}
.footer-bottom a { color: var(--ivory-mute); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Generic cards ---------- */

.card {
  background: var(--ink-2);
  border: 1px solid var(--hairline-2);
  padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.card:hover { border-color: var(--hairline); }

/* ---------- Image placeholders / stripes ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.img-frame:hover img { transform: scale(1.04); }
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

/* ---------- Utility ---------- */
.text-gold { color: var(--gold); }
.text-mute { color: var(--ivory-mute); }
.text-dim { color: var(--ivory-dim); }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ---------- Global mobile polish ---------- */
@media (max-width: 640px) {
  .nav { padding: 14px var(--page-pad); }
  .nav-logo svg { width: 30px; height: 30px; }
  .nav-logo-text { font-size: 13px; letter-spacing: 0.22em; }
  .nav-cta { gap: 10px; }
  .btn { padding: 14px 22px; font-size: 12px; letter-spacing: 0.12em; }
  .btn-sm { padding: 10px 16px; font-size: 10px; }
  .mobile-menu { top: 62px; }
  .footer { padding: 60px var(--page-pad) 32px; margin-top: 48px; }
  h1 { letter-spacing: -0.02em; }
}
@media (max-width: 380px) {
  .nav-logo-text { display: none; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print */
@media print {
  .nav, .footer { display: none; }
  body { background: white; color: black; }
}


/* =========================================================
   Tweaks panel (in-design tweak controls)
   ========================================================= */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 260px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(227, 200, 146, 0.08);
  font-family: 'Inter', sans-serif;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.tweaks-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tweaks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--hairline-2);
}
.tweaks-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.tweaks-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ivory-mute);
}
.tweaks-body {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tweak-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease;
}
.tweak-opt:hover { background: rgba(227, 200, 146, 0.06); }
.tweak-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tweak-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  position: relative;
  flex: 0 0 auto;
  transition: border-color .15s ease;
}
.tweak-opt input:checked + .tweak-dot {
  border-color: var(--gold);
}
.tweak-opt input:checked + .tweak-dot::after {
  content: "";
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(227, 200, 146, 0.5);
}
.tweak-label {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ivory-dim);
}
.tweak-opt input:checked ~ .tweak-label { color: var(--ivory); }
.tweaks-foot {
  padding: 10px 18px 14px;
  border-top: 1px solid var(--hairline-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ivory-mute);
}
