/* Brayder Creative brand: black + gold with a responsive banner */
:root{
  --maxw: 1100px;
  --radius: 1rem;
  --pad: 1rem;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --bg: #0a0a0a;
  --panel: #121212;
  --text: #eae7de;
  --muted: #b7b1a3;
  --gold: #d4af37;
  --gold-2: #e0c265;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.55}
.wrap{max-width:var(--maxw);margin:auto;padding:0 var(--pad)}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;background:#000;padding:.5rem .75rem;border-radius:.5rem;box-shadow:var(--shadow);color:#fff}

.site-header{padding:1rem 0 0.25rem;border-bottom:1px solid #1e1e1e}
.hero-wrap{display:flex;flex-direction:column;gap:.75rem;align-items:center}
.hero-banner{width:100%;height:auto;border-radius:.75rem;box-shadow:0 14px 40px rgba(0,0,0,.7);outline:1px solid rgba(212,175,55,.25);background:#000}

.nav{display:flex;gap:.5rem;align-items:center;justify-content:center;margin-bottom:.25rem}
.tab-button{appearance:none;border:1px solid rgba(212,175,55,.6);background:transparent;color:var(--gold);border-radius:999px;padding:.5rem .9rem;cursor:pointer;box-shadow:var(--shadow)}
.tab-button.active{background:var(--gold);border-color:var(--gold);color:#121212}
.tab-button.link{border-color:transparent;text-decoration:underline;color:var(--gold-2)}

.panel{display:none}
.panel--active{display:block}

h2{font-size:1.25rem;margin:1.25rem 0 .75rem;color:var(--gold)}

.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;padding-bottom:2rem}
.card{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:transform .15s ease, box-shadow .15s ease, outline-color .2s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 10px 30px rgba(0,0,0,.6);outline:1px solid rgba(212,175,55,.25)}
.card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;filter:contrast(1.03) saturate(1.02)}
.card figcaption{padding:.75rem 1rem;color:var(--muted)}

.about{margin:1rem 0 2.5rem;color:var(--text)}
.about a{color:var(--gold)}

.site-footer{color:var(--muted);border-top:1px solid #1e1e1e;padding:1.2rem 0;margin-top:1rem}

.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.85);padding:2rem;z-index:999}
.lightbox.open{display:flex}
.lightbox__inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;position:relative}
.lightbox img{max-width:min(95vw,1200px);max-height:80vh;border-radius:.75rem;box-shadow:0 18px 60px rgba(0,0,0,.85);outline:1px solid rgba(212,175,55,.35)}
.lightbox__caption{color:var(--gold);margin-top:.25rem;text-align:center}
.lightbox__close{position:absolute;top:.5rem;right:.5rem;font-size:2rem;line-height:1;color:var(--gold);background:transparent;border:0;cursor:pointer}
@media (prefers-reduced-motion: reduce){
  .card{transition:none}
}


/* Fade-in animation for gallery images */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.card {
  border: 1px solid rgba(212,175,55,.35);
}

.card img {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}


/* Interactive hover/focus treatment */
.card{
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease, border-color .18s ease;
  outline: 1px solid rgba(212,175,55,.25);
}
.card:hover,
.card:focus-within{
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(212,175,55,.25), 0 8px 22px rgba(0,0,0,.6);
  border-color: rgba(212,175,55,.55);
  outline-color: rgba(212,175,55,.45);
}
/* Make figures keyboard-focusable for accessibility */
.card { position: relative; }
.card figcaption { position: relative; z-index: 1; }
.card:focus-within { outline-offset: 0; }
.gallery img{ display:block }


/* Contact form */
.contact{margin:1rem 0 2.5rem}
.contact-form{max-width:720px;margin:1rem auto;background:var(--panel);padding:1rem;border-radius:1rem;box-shadow:var(--shadow);border:1px solid rgba(212,175,55,.25)}
.field{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0}
label{font-size:.9rem;color:var(--gold)}
input, textarea{background:#0d0d0d;border:1px solid #2a2a2a;color:var(--text);padding:.7rem .8rem;border-radius:.6rem;outline:none}
input:focus, textarea:focus{border-color:rgba(212,175,55,.55);box-shadow:0 0 0 3px rgba(212,175,55,.15)}
.actions{display:flex;gap:.6rem;align-items:center;margin-top:.6rem}
.btn{appearance:none;border:1px solid var(--gold);background:var(--gold);color:#121212;border-radius:999px;padding:.6rem 1rem;cursor:pointer;box-shadow:var(--shadow);font-weight:600}
.btn:hover{filter:brightness(1.05)}
.btn--ghost{background:transparent;color:var(--gold)}
.btn--ghost:hover{background:rgba(212,175,55,.1)}
.hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.form-status{color:var(--gold);min-height:1.25em;margin-top:.25rem;text-align:center}


/* Active nav link */
.nav .link.active {
  background: var(--gold);
  color: #121212 !important;
  border-color: var(--gold);
  text-decoration: none;
}


/* Ensure gallery tab buttons use .is-active to avoid clashing with nav .active */
.tab-button.is-active{ background: var(--gold); border-color: var(--gold); color:#121212; }
