:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface2:#f7f8fb;
  --text:#0b0f14;
  --muted:#5b6775;
  --gold:#c9a44a;
  --gold2:#e6d08a;
  --black:#0b0f14;
  --border:rgba(11,15,20,.10);
  --shadow: 0 18px 40px rgba(11,15,20,.10);
  --radius: 18px;

  /* Wider site so it fills more screen */
  --max: 1320px;

  /* Background gradient controls (so dark mode can match) */
  --bgG1: rgba(201,164,74,.18);
  --bgG2: rgba(11,15,20,.07);
}

/* Dark theme overrides */
html[data-theme="dark"]{
  --bg:#0b0f14;
  --surface:#111826;
  --surface2:#0f1622;
  --text:#f4f6fb;
  --muted:#a9b4c2;
  --black:#0b0f14;
  --border:rgba(244,246,251,.12);
  --shadow: 0 18px 40px rgba(0,0,0,.35);

  --bgG1: rgba(201,164,74,.10);
  --bgG2: rgba(244,246,251,.06);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% -15%, var(--bgG1), transparent 60%),
    radial-gradient(900px 520px at 85% 10%, var(--bgG2), transparent 55%),
    var(--bg);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
.wrap{max-width:var(--max); margin:0 auto; padding:26px 18px 72px}

.topbar{
  position:sticky; top:0; z-index:60;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .topbar{
  background: rgba(11,15,20,.78);
}

/* ✅ Header layout: nav centered, CTA right */
.topbarInner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 18px;

  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:14px;
  align-items:center;
}

.brand{display:flex; gap:10px; align-items:center; min-width: 260px;}
.logoImg{
  height:44px; width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(11,15,20,.12));
}
html[data-theme="dark"] .logoImg{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}
.brandText{display:flex; flex-direction:column; gap:1px}
.brandText b{font-size:15px; letter-spacing:.2px}
.brandText span{font-size:12px; color:var(--muted)}

/* ✅ Centered nav */
.nav{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;   /* center links in available space */
  justify-self:center;      /* center the nav block itself */
  flex-wrap:nowrap;
  white-space:nowrap;
}

.nav a{
  font-size:13px; color:var(--muted);
  padding:8px 10px; border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{color:var(--text); border-color: var(--border); background: rgba(11,15,20,.03)}
html[data-theme="dark"] .nav a:hover{background: rgba(244,246,251,.06)}
.nav a.active{color:var(--text); border-color: var(--border); background: rgba(11,15,20,.04)}
html[data-theme="dark"] .nav a.active{background: rgba(244,246,251,.06)}

.cta{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

.pill{
  font-size:12px; color:var(--muted);
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.02);
  white-space:nowrap;
}
html[data-theme="dark"] .pill{background: rgba(244,246,251,.05);}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 14px;
  border-radius: 14px;
  font-weight:850; font-size:13px;
  color:#ffffff;
  background: linear-gradient(135deg, var(--black), #1a2230);
  border:0;
  cursor:pointer;
  box-shadow: 0 14px 30px rgba(11,15,20,.16);
}
.btn:hover{transform: translateY(-1px)}
.btn.secondary{
  background: rgba(11,15,20,.04);
  border:1px solid var(--border);
  color:var(--text);
  font-weight:800;
  box-shadow:none;
}
html[data-theme="dark"] .btn.secondary{
  background: rgba(244,246,251,.06);
}
.btn.gold{
  color:#111;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border:0;
}

/* Dark mode toggle button (injected next to Call button) */
.themeBtn{
  padding: 11px 14px;
  min-width: 96px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.themeBtn:focus{
  outline: 2px solid rgba(201,164,74,.55);
  outline-offset: 2px;
}

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:22px;
}
.softCard{
  background: var(--surface2);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 24px rgba(11,15,20,.08);
}
html[data-theme="dark"] .softCard{
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.sectionTitle{
  margin:28px 0 12px;
  font-size:12px;
  letter-spacing:.18em;
  color:var(--muted);
  text-transform:uppercase;
}
h1{margin:0 0 10px; font-size:40px; line-height:1.05; letter-spacing:-.02em}
h2{margin:0 0 10px; font-size:24px}
h3{margin:2px 0 6px; font-size:16px}
.sub{margin:0 0 16px; color:var(--muted); font-size:15px; max-width: 75ch}
.fine{margin-top:12px; color:var(--muted); font-size:12px}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
@media (max-width: 980px){
  .grid2,.grid3{grid-template-columns:1fr}

  /* Allow wrapping on small screens */
  .topbarInner{grid-template-columns: 1fr; }
  .brand{min-width:0}
  .nav{justify-content:flex-start; justify-self:start; flex-wrap:wrap; white-space:normal}
  .cta{justify-content:flex-start; flex-wrap:wrap}
}

.hero{
  padding: 26px 0 10px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 960px){ .hero{grid-template-columns:1fr} }

.bullets{margin:0; padding:0; display:grid; gap:10px}
.bullets li{list-style:none; display:flex; gap:10px; align-items:flex-start}
.dot{
  width:10px; height:10px; margin-top:7px; border-radius:50%;
  background: linear-gradient(135deg, var(--gold), var(--black));
  flex: 0 0 10px;
}

.tagRow{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.tag{
  font-size:12px; color:var(--muted);
  padding:6px 10px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.02);
  border-radius:999px;
  white-space:nowrap;
}
html[data-theme="dark"] .tag{background: rgba(244,246,251,.05);}

.mediaFrame{
  border:1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(11,15,20,.10);
}
html[data-theme="dark"] .mediaFrame{
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.mediaFrame img{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}
@media (max-width: 700px){
  .mediaFrame img{height: 260px;}
}

form{display:grid; gap:10px}
.row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width: 700px){ .row{grid-template-columns:1fr} }
label{font-size:12px; color:var(--muted)}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  outline:none;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select{
  background: rgba(244,246,251,.04);
}
textarea{min-height:120px; resize:vertical}
.helper{font-size:12px; color:var(--muted); margin-top:8px}

.footer{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer a{color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.footer a:hover{color:var(--text)}

/* Chat UI */
.chatShell{display:grid; gap:12px}
.chatWindow{
  border:1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding:14px;
  height: 420px;
  overflow:auto;
}
.msg{display:flex; gap:10px; margin:10px 0}
.bubble{
  max-width: 82%;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.02);
}
html[data-theme="dark"] .bubble{background: rgba(244,246,251,.05);}
.msg.me{justify-content:flex-end}
.msg.me .bubble{
  background: linear-gradient(135deg, rgba(201,164,74,.20), rgba(11,15,20,.03));
}
html[data-theme="dark"] .msg.me .bubble{
  background: linear-gradient(135deg, rgba(201,164,74,.16), rgba(244,246,251,.06));
}
.msg .meta{font-size:11px; color:var(--muted); margin-top:4px}
.chatBar{display:flex; gap:10px}
.chatBar input{flex:1}
.smallBtn{
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--border);
  background: rgba(11,15,20,.02);
  color: var(--text);
  font-weight:850; cursor:pointer;
}
html[data-theme="dark"] .smallBtn{background: rgba(244,246,251,.05);}
.smallBtn:hover{background: rgba(11,15,20,.04)}
html[data-theme="dark"] .smallBtn:hover{background: rgba(244,246,251,.08);}

/* Carousel */
.carousel{display:grid; gap:10px}
.carouselTop{position:relative}
.carouselImg{
  width:100%;
  height: 420px;
  object-fit: cover;
  display:block;
  border-radius: 18px;
  border:1px solid var(--border);
  box-shadow: 0 18px 40px rgba(11,15,20,.10);
  background: var(--surface);
}
html[data-theme="dark"] .carouselImg{box-shadow: 0 18px 40px rgba(0,0,0,.35);}
@media (max-width: 700px){ .carouselImg{height: 280px;} }

.carouselNav{
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
  pointer-events:none;
}
.carouselBtn{
  pointer-events:auto;
  width:42px; height:42px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.72);
  cursor:pointer;
  font-weight:900;
}
html[data-theme="dark"] .carouselBtn{
  background: rgba(11,15,20,.65);
  color: var(--text);
}
.carouselBtn:hover{background: rgba(255,255,255,.92)}
html[data-theme="dark"] .carouselBtn:hover{background: rgba(11,15,20,.82);}
.carouselCaption{margin-top:6px; color:var(--muted); font-size:12px}
.carouselThumbs{display:flex; gap:10px; overflow:auto; padding-bottom:4px}
.carouselThumb{
  width:140px; height:80px;
  border-radius: 14px;
  border:1px solid var(--border);
  object-fit: cover;
  cursor:pointer;
  opacity:.78;
  flex:0 0 auto;
}
.carouselThumb.active{opacity:1; outline: 2px solid rgba(201,164,74,.55)}
