/* Mustard Production Kenya — Art-Directed Premium Identity */
/* Deep charcoal + subtle mustard. Cinematic backgrounds, clean grid, intentional hierarchy. */
:root{
  --bg:#07080c;
  --surface:rgba(18,20,30,0.72);
  --surface-strong:#10121c;
  --line:#23293e;
  --text:#f2f2f2;
  --text-muted:#9aa3b2;
  --accent:#c8963c;
  --accent-hover:#d8b05e;
  --accent-soft:rgba(200,150,60,0.12);
  --overlay-strong:linear-gradient(to bottom, rgba(7,8,12,0.75) 0%, rgba(7,8,12,0.94) 100%);
  --overlay-soft:linear-gradient(to bottom, rgba(7,8,12,0.45) 0%, rgba(7,8,12,0.75) 60%, rgba(7,8,12,0.95) 100%);
  --max-width:1140px;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 30px 60px -14px rgba(0,0,0,0.7);
  --shadow-sm:0 10px 25px -5px rgba(0,0,0,0.4);
  --transition:0.55s cubic-bezier(0.23,1,0.32,1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto !important;}
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;background:var(--bg);color:var(--text);overflow-x:hidden;}
body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  line-height:1.7;background:var(--bg);color:var(--text);font-size:16px;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{font-family:ui-serif,Georgia,"Times New Roman",serif;line-height:1.12;font-weight:800;letter-spacing:-0.02em;}
h1{font-size:clamp(2.7rem,5.5vw,5.2rem);}
h2{font-size:clamp(2rem,4vw,2.9rem);}
h3{font-size:clamp(1.35rem,2.8vw,1.9rem);}
p{color:var(--text-muted);}
.container{max-width:var(--max-width);margin:0 auto;padding:0 1.75rem;}
.section{position:relative;padding:7rem 0;}
.section-head{text-align:center;margin-bottom:4rem;}
.section-head .kicker{display:inline-block;font-size:0.78rem;letter-spacing:0.3em;text-transform:uppercase;color:var(--accent);font-weight:900;margin-bottom:1rem;}
.section-head h2{margin-bottom:1rem;}
.section-head p{color:var(--text-muted);max-width:58ch;margin:0 auto;font-size:1.05rem;}

/* Utility */
.text-center{text-align:center;}
.muted{color:var(--text-muted);}
.lead{font-size:1.05rem;color:var(--text-muted);max-width:64ch;}
.reveal{opacity:1;transform:none;}
.reveal.revealed{opacity:1;transform:translateY(0);}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.9rem 1.9rem;border-radius:var(--radius-sm);font-weight:800;font-size:0.95rem;transition:all var(--transition);border:1px solid transparent;cursor:pointer;letter-spacing:0.02em;}
.btn-primary{background:var(--accent);color:#070707;}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-2px);box-shadow:0 18px 38px -8px rgba(200,150,60,0.5);}
.btn-outline{background:transparent;border-color:var(--line);color:var(--text);}
.btn-outline:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-2px);}

/* Header / Nav */
.header{position:sticky;top:0;z-index:60;border-bottom:1px solid var(--line);background:rgba(7,8,12,0.65);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.header .container{display:flex;align-items:center;justify-content:space-between;height:84px;}
.brand{display:flex;align-items:center;gap:0.5rem;flex-wrap:nowrap;white-space:nowrap;font-family:ui-serif,Georgia,serif;font-weight:900;font-size:1.3rem;letter-spacing:-0.03em;}
.brand .mark{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--accent),#a6782e);display:grid;place-items:center;color:#070707;font-weight:900;font-size:1rem;}
.brand-logo{width:80px;height:80px;border-radius:8px;object-fit:contain;flex-shrink:0;}
.brand-name{display:flex;flex-direction:column;line-height:1;}
.brand-name span{display:block;}
.nav-links{display:flex;gap:2.6rem;align-items:center;}
.nav-links a{font-size:0.95rem;font-weight:700;color:var(--text-muted);transition:color var(--transition);}
.nav-links a:hover,.nav-links a.active{color:var(--text);}
.mobile-toggle{display:none;background:none;border:none;color:var(--text);font-size:1.5rem;cursor:pointer;}

/* ============ HERO — CINEMATIC VIDEO BACKGROUND ============ */
.hero{position:relative;padding:10rem 0 8rem;overflow:hidden;background:#05060a;}
.hero-bg{
  position:absolute;inset:0;z-index:1;
  background:radial-gradient(900px circle at 55% 10%, rgba(200,150,60,0.07), transparent 55%);
}
.hero video{
  position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:2;
  pointer-events:none;user-select:none;
}
.hero-overlay{
  position:absolute;inset:0;z-index:3;
  background:var(--overlay-strong);
}
.hero .container{position:relative;z-index:4;max-width:820px;}
.hero .kicker{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.75rem;letter-spacing:0.35em;text-transform:uppercase;color:var(--accent);font-weight:900;margin-bottom:1.4rem;}
.hero .kicker::before{content:"";display:inline-block;width:14px;height:1px;background:var(--accent);}
.hero h1{margin-bottom:1.8rem;line-height:1.1;text-shadow:0 2px 12px rgba(0,0,0,0.6);}
.hero p{color:#e8eaed;font-size:1.15rem;max-width:56ch;margin-bottom:2.6rem;line-height:1.75;margin-top:0.4rem;text-shadow:0 1px 8px rgba(0,0,0,0.7);}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;}

/* Section background image wrapper */
.section-bg{
  position:absolute;inset:0;z-index:1;overflow:hidden;
}
.section-bg video,.section-bg img{
  width:100%;height:100%;object-fit:cover;pointer-events:none;
}
.section-bg .overlay{
  position:absolute;inset:0;z-index:2;
  background:var(--overlay-strong);
}
.section-content{position:relative;z-index:4;}

/* Studio feature card over background */
.feature-card{
  position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);backdrop-filter:blur(10px);
}
.feature-card .media-wrap{width:100%;height:300px;background:var(--line);overflow:hidden;position:relative;}
.feature-card .media-wrap img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition);}
.feature-card:hover .media-wrap img{transform:scale(1.04);}
.feature-card .media-wrap::after{
  content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,0.5)100%);
}
.feature-card .tag{
  position:absolute;left:1rem;bottom:1rem;z-index:5;background:rgba(0,0,0,0.55);backdrop-filter:blur(6px);
  padding:0.45rem 0.9rem;border-radius:6px;font-size:0.8rem;font-weight:800;color:#fff;letter-spacing:0.05em;
  border:1px solid rgba(255,255,255,0.1);
}
.feature-card .body{padding:1.5rem;}
.feature-card .body h3{font-size:1.1rem;margin-bottom:0.4rem;}
.feature-card .body p{font-size:0.92rem;color:var(--text-muted);margin-bottom:0.8rem;}
.feature-card .foot{display:flex;justify-content:space-between;align-items:center;padding:0.9rem 1.5rem;border-top:1px solid var(--line);font-size:0.85rem;color:var(--text-muted);}
.feature-card .foot .price{color:var(--accent);font-weight:800;}

/* Grid */
.grid{display:grid;gap:1.6rem;}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));}

/* Cards (content-over-background style) */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  transition:transform var(--transition),border-color var(--transition),box-shadow var(--transition);
  backdrop-filter:blur(10px);}
.card:hover{transform:translateY(-6px);border-color:var(--accent);box-shadow:var(--shadow);}
.card-media{height:220px;background:var(--line);position:relative;overflow:hidden;}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition);}
.card:hover .card-media img{transform:scale(1.04);}
.card-body{padding:1.5rem;}
.card-body h3{font-size:1.1rem;margin-bottom:0.4rem;}
.card-body p{font-size:0.92rem;color:var(--text-muted);margin-bottom:0.85rem;}
.card-foot{display:flex;justify-content:space-between;align-items:center;padding:0.9rem 1.5rem;border-top:1px solid var(--line);font-size:0.85rem;color:var(--text-muted);}
.card-foot .price{color:var(--accent);font-weight:800;}

/* Large artist cards */
.artist-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  transition:all var(--transition);backdrop-filter:blur(10px);}
.artist-card:hover{border-color:var(--accent);transform:translateY(-6px);box-shadow:var(--shadow);}
.artist-media{height:360px;background:var(--line);position:relative;overflow:hidden;}
.artist-media img{width:100%;height:100%;object-fit:cover;transition:transform var(--transition);}
.artist-card:hover .artist-media img{transform:scale(1.04);}
.artist-media .badge{
  position:absolute;right:1rem;top:1rem;background:rgba(0,0,0,0.6);backdrop-filter:blur(6px);
  padding:0.45rem 0.85rem;border-radius:50px;font-size:0.78rem;font-weight:800;color:#fff;letter-spacing:0.05em;
  border:1px solid rgba(255,255,255,0.1);background-color:rgba(200,150,60,0.15);color:var(--accent);
}
.artist-body{padding:1.5rem;}
.artist-body h3{font-size:1.2rem;margin-bottom:0.3rem;}
.artist-body .role{font-size:0.85rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.15em;margin-bottom:0.9rem;}
.artist-body p{font-size:0.92rem;color:var(--text-muted);margin-bottom:1rem;line-height:1.7;}

/* Section background images — full-section blended backgrounds behind content */
.sec-wrap{position:relative;overflow:hidden;}
.sec-bg{
  position:absolute;inset:0;z-index:1;
  background-size:cover;background-repeat:no-repeat;
  transform:scale(1.02);transition:transform 8s ease;
}
.reveal .sec-bg{transition:none;}
.sec-overlay{
  position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg, rgba(7,8,12,0.72) 0%, rgba(7,8,12,0.96) 65%, rgba(7,8,12,1) 100%);
}
.sec-content{position:relative;z-index:4;}

/* Per-section background images */
.sec-bg--services{background-image:url('/static/img/studio-mixer.jpg');background-position:center center;}
.sec-bg--artists{background-image:url('/static/img/studio-duo.jpg');background-position:center center;}
.sec-bg--music{background-image:url('/static/img/studio-producer.jpg');background-position:center center;}
.sec-bg--events{background-image:url('/static/img/studio-console.jpg');background-position:center center;}
.sec-bg--gallery{background-image:url('/static/img/gallery-session.jpg');background-position:center center;}
.sec-bg--home{background-image:url('/static/img/studio-vocalist.jpg');background-position:center center;}
.sec-bg--about{background-image:url('/static/img/hero-kenya.jpg');background-position:center center;}

/* Content over background — remove card borders/shadows where section bg is used */
.sec-card{background:transparent;border:none;box-shadow:none;backdrop-filter:none;}
.sec-card:hover{transform:none;border-color:transparent;box-shadow:none;}
.sec-card-media{height:auto;background:transparent;}
.sec-card-media img{width:100%;height:100%;object-fit:cover;display:block;}
.sec-card-body{padding:1rem;}
.sec-card-foot{padding:0.75rem 1rem;border-top:none;background:rgba(7,8,12,0.55);backdrop-filter:blur(6px);}

/* CTA background */
.cta-sec{position:relative;overflow:hidden;border-radius:var(--radius);margin:6rem 0;}
.cta-sec .sec-bg{z-index:1;}
.cta-sec .sec-overlay{z-index:2;
  background:linear-gradient(180deg, rgba(7,8,12,0.82) 0%, rgba(7,8,12,0.97) 70%, rgba(7,8,12,1) 100%);
}
.cta-sec .cta-bg{display:none;}
.cta-sec .cta-overlay{display:none;}

/* Footer */
.footer{border-top:1px solid var(--line);padding:6rem 0 2rem;margin-top:6rem;}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:2.5rem;margin-bottom:2.5rem;}
.footer .brand{font-size:1.25rem;margin-bottom:0.9rem;}
.footer .muted{font-size:0.9rem;max-width:46ch;line-height:1.7;}
.footer h4{color:#fff;margin-bottom:1rem;font-size:1rem;}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:0.55rem;}
.footer ul li a{color:var(--text-muted);font-size:0.95rem;transition:color var(--transition);}
.footer ul li a:hover{color:var(--accent);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:2rem;border-top:1px solid var(--line);font-size:0.85rem;color:var(--text-muted);flex-wrap:wrap;gap:1rem;}
.socials{display:flex;gap:1rem;}
.socials a{width:40px;height:40px;border-radius:10px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--text);transition:all var(--transition);font-size:1.1rem;}
.socials a:hover{background:var(--accent);color:#070707;transform:translateY(-3px);}

/* Audio player */
.audio-player{width:100%;max-width:460px;margin:1rem auto;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1.2rem;backdrop-filter:blur(10px);}
.audio-player audio{width:100%;}

/* Tables */
table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  backdrop-filter:blur(10px);}
th,td{padding:1rem;text-align:left;border-bottom:1px solid var(--line);font-size:0.95rem;}
th{background:var(--surface-strong);color:#fff;font-size:0.85rem;text-transform:uppercase;letter-spacing:0.1em;}
tr:hover{background:var(--surface-hover);}

/* Forms */
.form-grid{display:grid;gap:1.2rem;}
.form-group{display:flex;flex-direction:column;gap:0.4rem;}
.form-group label{font-size:0.9rem;font-weight:700;color:var(--text);}
.form-group input,.form-group textarea,.form-group select{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:0.85rem;color:var(--text);font-size:0.95rem;transition:border-color var(--transition);}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--accent);}

/* Admin */
.admin-wrap{display:flex;min-height:100vh;}
.admin-sidebar{width:250px;background:#0a0b14;border-right:1px solid var(--line);flex-shrink:0;display:flex;flex-direction:column;}
.admin-sidebar .brand{height:74px;padding:0 1.2rem;display:flex;align-items:center;gap:0.75rem;border-bottom:1px solid var(--line);
  font-family:ui-serif,Georgia,serif;font-weight:900;font-size:1.2rem;}
.admin-sidebar .mark{width:28px;height:28px;border-radius:6px;background:linear-gradient(135deg,var(--accent),#a6782e);display:grid;place-items:center;
  color:#070707;font-weight:900;font-size:0.9rem;}
.admin-sidebar nav{flex:1;padding:1rem 0;overflow-y:auto;}
.admin-sidebar a{display:flex;align-items:center;gap:0.9rem;padding:0.9rem 1.2rem;font-size:0.95rem;color:var(--text-muted);
  transition:all var(--transition);border-left:3px solid transparent;text-decoration:none;}
.admin-sidebar a:hover,.admin-sidebar a.active{background:var(--surface);color:#fff;border-left-color:var(--accent);}
.admin-main{flex:1;background:var(--bg);padding:2rem;overflow-y:auto;}
.admin-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:1.75rem;margin-bottom:1.75rem;
  backdrop-filter:blur(10px);}
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin-bottom:2rem;}
.stat{background:var(--surface-strong);border:1px solid var(--line);border-radius:var(--radius);padding:1.35rem;}
.stat .big{font-size:2.1rem;font-weight:900;color:var(--accent);line-height:1;}
.stat .label{font-size:0.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:0.1em;margin-top:0.4rem;}
.admin-actions{display:flex;gap:0.75rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center;}
.alert{padding:1rem 1.25rem;border-radius:var(--radius-sm);margin-bottom:1rem;font-size:0.95rem;}
.alert-error{background:rgba(239,68,68,0.12);border:1px solid rgba(239,68,68,0.35);color:#fca5a5;}
.admin-table-wrap{overflow-x:auto;}
.badge{display:inline-block;padding:0.22rem 0.65rem;border-radius:6px;font-size:0.78rem;font-weight:800;text-transform:uppercase;letter-spacing:0.08em;}
.badge-published{background:rgba(34,197,94,0.15);color:#86efac;border:1px solid rgba(34,197,94,0.35);}
.badge-draft{background:rgba(234,179,8,0.15);color:#fcd34d;border:1px solid rgba(234,179,8,0.35);}

/* Editor */
.editor-wrap{display:flex;height:calc(100vh - 74px);}
.editor-sidebar{width:320px;background:#0a0b14;border-right:1px solid var(--line);flex-shrink:0;overflow-y:auto;padding:1rem;}
.editor-stage{flex:1;background:#07080c;position:relative;overflow:auto;padding:1rem;}
.toolbar{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:1rem;}

/* Flash */
.flash{position:fixed;top:8rem;left:50%;transform:translateX(-50%);z-index:100;padding:1rem 1.5rem;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--line);color:#fff;box-shadow:var(--shadow);}

/* Responsive */
@media (max-width:768px){
  .nav-links{display:none;position:absolute;top:74px;left:0;right:0;background:#0a0b14;flex-direction:column;padding:1rem;border-bottom:1px solid var(--line);}
  .nav-links.open{display:flex;}
  .mobile-toggle{display:block;}
  .hero{padding:8rem 0 6rem;}
  .feature-card .media-wrap{height:240px;}
  .artist-media{height:300px;}
  .cta .container{padding:4rem 1.5rem;}
  .admin-wrap{flex-direction:column;}
  .admin-sidebar{width:100%;height:auto;border-right:none;border-bottom:1px solid var(--line);flex-direction:row;overflow-x:auto;padding:0;}
  .admin-sidebar nav{padding:0;display:flex;gap:0;overflow-x:auto;}
  .admin-sidebar a{padding:0.75rem 1rem;white-space:nowrap;}
  .admin-main{padding:1rem;}
  .editor-wrap{flex-direction:column;}
  .editor-sidebar{width:100%;height:35%;border-right:none;border-bottom:1px solid var(--line);}
}

/* ---- Music Catalogue ---- */
.music-controls{margin:2rem 0;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;}
.music-stats{margin-bottom:2rem;display:flex;gap:2rem;flex-wrap:wrap;}
.stat{display:flex;flex-direction:column;}
.stat-value{font-size:1.5rem;font-weight:700;color:var(--accent);}
.stat-label{font-size:0.8rem;color:var(--text-muted);margin-top:0.25rem;}

.music-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem;}
.music-card{background:#0a0c14;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:transform 0.2s,box-shadow 0.2s;min-height:340px;opacity:1;transform:none;}
.music-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-sm);border-color:var(--accent);}
.music-thumbnail{position:relative;aspect-ratio:16/9;background:#07080c;overflow:hidden;}
.music-duration{position:absolute;bottom:0.5rem;right:0.5rem;background:rgba(0,0,0,0.7);color:#fff;font-size:0.75rem;padding:0.25rem 0.5rem;border-radius:4px;}
.music-play-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.4rem;font-weight:700;cursor:pointer;opacity:1;transition:opacity 0.2s;}
.music-card:hover .music-play-overlay{opacity:0.9;}
.music-info{padding:1rem;}
.music-info h3{margin:0 0 0.5rem 0;font-size:1.05rem;color:var(--text);}
.music-info .btn{width:100%;}

/* ---- Artist Directory ---- */
.artist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem;}
.artist-card{background:#0a0c14;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:transform 0.2s;}
.artist-card:hover{transform:translateY(-4px);border-color:var(--accent);}
.artist-rank{position:absolute;top:1rem;left:1rem;background:var(--accent);color:#070707;font-weight:800;font-size:0.85rem;padding:0.25rem 0.75rem;border-radius:20px;z-index:2;}
.artist-content{padding:1rem;position:relative;}
.artist-header{display:flex;align-items:center;gap:1rem;margin-bottom:0.75rem;}
.artist-info h3{margin:0;font-size:1rem;color:var(--text);}
.artist-subs{font-size:0.8rem;color:var(--accent);font-weight:700;}
.artist-song-count{font-size:0.8rem;color:var(--text-muted);}
.artist-country{font-size:0.75rem;color:var(--text-muted);margin-bottom:0.5rem;}
.artist-actions{display:flex;gap:0.5rem;}
.artist-actions .btn{width:100%;padding:0.5rem;font-size:0.8rem;text-align:center;}

/* Responsive */
@media (max-width:600px){
  .music-grid{grid-template-columns:1fr;}
  .artist-grid{grid-template-columns:1fr;}
}