:root{
  --bg:#0b0b0c; --bg-elev:#101012; --ink:#e7e7ea; --muted:#b9bcc2;
  --gold:#d4af37; --border:#1b1c20;
}
html,body{background:var(--bg); color:var(--ink); font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.serif{font-family:"Playfair Display",serif}
.caps{letter-spacing:.16em; text-transform:uppercase; font-size:.78rem}
.muted{color:var(--muted)}
.gold{color:var(--gold)}
.btn-gold{--bs-btn-color:#121212; --bs-btn-bg:var(--gold); --bs-btn-border-color:var(--gold); --bs-btn-hover-bg:#c19c2f; --bs-btn-hover-border-color:#c19c2f}
.btn-outline-gold{--bs-btn-color:var(--gold); --bs-btn-border-color:var(--gold); --bs-btn-hover-bg:var(--gold); --bs-btn-hover-border-color:var(--gold); --bs-btn-hover-color:#121212}
.nav-link{color:var(--ink)!important; opacity:.9}
.nav-link:hover{color:var(--gold)!important}
.navbar{background:rgba(11,11,12,.85); backdrop-filter: blur(6px); border-bottom:1px solid var(--border)}
.rule{height:1px; background:linear-gradient(90deg,transparent, var(--gold) 15%, var(--gold) 85%, transparent)}
.headline{position:relative; display:inline-block}
.headline::after{content:""; position:absolute; left:0; right:0; bottom:-10px; height:2px; background:linear-gradient(90deg,transparent 0 10%, var(--gold) 10% 90%, transparent 90% 100%)}
.py-6{padding-top:4.5rem; padding-bottom:4.5rem}

.tile{
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0));
  border:1px solid var(--border); border-radius:18px; padding:1.35rem;
  transition:transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover{transform:translateY(-4px); border-color:#23242a; box-shadow:0 12px 30px rgba(0,0,0,.35)}

.filters{gap:.5rem}
.chip{
  display:inline-flex; align-items:center; gap:.5rem; padding:.45rem .8rem;
  border:1px solid var(--border); border-radius:999px; background:#0f0f12; color:var(--ink);
  cursor:pointer; user-select:none; transition:all .2s;
}
.chip:hover{border-color:#22232a}
.chip.active{border-color:var(--gold); color:var(--gold)}

.brand-logo{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0));
  border:1px solid var(--border);
  border-radius:14px;
  height:84px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:0.9rem; padding:10px 14px;
}
.brand-logo img{max-height:60px; max-width:100%; object-fit:contain}

/* Brands directory UI */
.brands-toolbar{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px}
.search-pill{
  display:flex; align-items:center; gap:.6rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:#0f0f12;
  padding:.45rem .75rem;
  min-width:min(420px, 100%);
}
.search-pill i{color:var(--muted)}
.search-pill input{
  border:none; outline:none; background:transparent; color:var(--ink);
  width:100%; font-size:.95rem;
}

/* Atlantic-style tile card */
.brand-tile{
  position:relative; overflow:hidden;
  border-radius:18px; border:1px solid var(--border);
  background:#0f0f12; min-height:240px;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  isolation:isolate;
}
.brand-tile .media{position:absolute; inset:0}
.brand-tile .media img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform: scale(1.02);
  transition: transform .55s cubic-bezier(.2,.9,.2,1);
}
.brand-tile .shade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.86) 100%);
  opacity:.92; transition:opacity .45s ease;
}
.brand-tile .content{
  position:absolute; inset:0; z-index:2;
  padding:16px; display:flex; flex-direction:column; justify-content:flex-end; gap:10px;
}
.brand-tile .name{margin:0; font-size:18px; font-weight:800; line-height:1.1}
.brand-tile .desc{margin:0; font-size:13px; color:rgba(255,255,255,.82)}
.brand-tile .meta{display:flex; align-items:center; justify-content:space-between; gap:10px}
.brand-tile .tag{
  font-size:12px; color:rgba(255,255,255,.88);
  background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.14);
  padding:7px 10px; border-radius:999px; backdrop-filter: blur(8px);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.brand-tile .actions{display:flex; gap:8px; opacity:0; transform: translateY(6px); transition: all .25s ease}
.brand-tile .iconbtn{
  width:38px; height:38px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.35);
  display:grid; place-items:center; color:#fff; text-decoration:none;
}
.brand-tile:hover .media img{transform: scale(1.10)}
.brand-tile:hover .shade{opacity:.75}
.brand-tile:hover .actions{opacity:1; transform:none}

.brands-list{border:1px solid var(--border); border-radius:18px; overflow:hidden; background: rgba(255,255,255,.02)}
.brands-row{display:grid; grid-template-columns: 64px 1.3fr 1fr 150px; gap:14px; align-items:center; padding:12px 14px; border-top:1px solid rgba(255,255,255,.08)}
.brands-row:first-child{border-top:none}
.brands-thumb{width:52px;height:52px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:#0f0f12}
.brands-thumb img{width:100%;height:100%;object-fit:cover}

.empty{border:1px dashed rgba(255,255,255,.18); border-radius:18px; padding:20px 16px; color:var(--muted); background: rgba(255,255,255,.02)}
.footer{background:#0a0a0b}

/* Brand profile hero */
.brand-hero{
  border-radius:14px;
  border:1px solid var(--border);
  height:220px;
  background-size:cover;
  background-position:center;
}
.home-brand-card{
  display:flex;
  gap:12px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  border-radius:16px;
  padding:12px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.home-brand-card:hover{
  transform: translateY(-2px);
  border-color: rgba(212,175,55,.35);
  background: rgba(255,255,255,.03);
}

.home-brand-logo{
  width:64px; height:64px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:grid; place-items:center;
  padding:10px;
  flex:0 0 auto;
}
.home-brand-logo img{max-width:100%; max-height:100%; object-fit:contain}

.home-brand-info{min-width:0; width:100%}

.rel-badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  white-space:nowrap;
}
.rel-owned{border-color: rgba(212,175,55,.45); color: var(--gold)}
.rel-current{border-color: rgba(34,197,94,.35)}
.rel-past{border-color: rgba(168,176,190,.35); color: var(--muted)}

.outcome{
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
}
.hero{ position:relative; isolation:isolate; overflow:hidden;
  background:
    radial-gradient(80% 60% at 80% -10%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(70% 50% at -10% 0%, rgba(212,175,55,.06), transparent 55%),
    linear-gradient(180deg,#0b0b0c 0%, #0e0e10 60%, #0b0b0c 100%);
}
.hero-slide{ position:relative; min-height:68vh; }
.hero-media{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter: saturate(0.92) contrast(1.02);
}
.hero-content{ position:relative; z-index:2; padding-top:5rem; padding-bottom:5rem; }
.hero-slide::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(70% 80% at 70% -10%, rgba(0,0,0,.2), rgba(0,0,0,.55));
  z-index:1;
}
.carousel-indicators [data-bs-target]{
  width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.35);
}
.carousel-indicators .active{ background:var(--gold); }
.carousel-control-prev-icon, .carousel-control-next-icon{ filter: invert(1) grayscale(1); }
.image-slot{
  min-height: 320px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border:1px solid var(--border);
}

.image-slot[data-image="brand-development"]{
  background-image: url('/assets/services/brand-development.jpg');
}
