/* ==============================================
   PROTOSYNTHESIS MEDIA — GLOBAL STYLES v1.2
   Added: Work catalogue grid, card hover effects
============================================== */


:root {
  --bb-accent: #9e2b25;
  --bb-gold: #d4af37;
  --bb-muted: #8a7a67;
  --bb-bg: #f8f2e4;
  --bb-dark: #2b241a;
  --bb-glow: rgba(158, 43, 37, 0.15);
  --radius-lg: 8px;
  --radius-md: 6px;
  --max-width: 960px; /* Slightly wider for grid layout */
  --hero-height: 60vh;
  --overlay-dark: rgba(26, 22, 18, 0.65);
  --overlay-light: rgba(248, 242, 228, 0.75);
}

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

body {
  background: #1a1612;
  color: var(--bb-dark);
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.75;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------
   HERO & IMAGE SYSTEM
--------------------------- */
/* Full-width cinematic hero */
.hero-banner {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 3rem;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-overlay h1 {
  color: #ebdca8;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-overlay p {
  color: #f8f2e4;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 700px;
  font-style: italic;
  opacity: 0.9;
}

/* Inline content images */
.content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  filter: brightness(0.95) contrast(1.03);
}

/* Section divider image */
.image-divider {
  width: 100%;
  height: 30vh;
  object-fit: cover;
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  opacity: 0.9;
}

/* --------------------------
   HEADER & BRANDING
--------------------------- */
.page-header {
  text-align: center;
  margin: 3rem 0 2rem;
}

.logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 1rem;
}

.page-header h1 {
  color: #ebdca8;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--bb-muted);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  font-style: italic;
}

/* --------------------------
   NAVIGATION
--------------------------- */
.main-nav {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--bb-gold);
  background: transparent;
  color: var(--bb-gold);
  text-decoration: none;
  border-radius: 4px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav-btn:hover {
  background: var(--bb-gold);
  color: #1a1612;
}

.nav-btn.active {
  opacity: 0.85;
  pointer-events: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2b241a;
  border: 1px solid var(--bb-gold);
  border-radius: 4px;
  min-width: 180px;
  z-index: 10;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--bb-gold);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.15s ease;
}

.dropdown-content a:hover {
  background: var(--bb-gold);
  color: #1a1612;
}

/* --------------------------
   MAIN CONTENT
--------------------------- */
.content {
  background: var(--bb-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 50px rgba(0,0,0,0.4), inset 0 0 0 1px var(--bb-gold);
  position: relative;
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/textures/parchment-texture.jpg');
  opacity: 0.12;
  pointer-events: none;
  border-radius: inherit;
}

.content h2 {
  color: var(--bb-accent);
  margin: 3rem 0 1.2rem;
  font-size: 1.7rem;
  font-family: Georgia, 'Times New Roman', serif;
  border-bottom: 1px solid var(--bb-gold);
  padding-bottom: 0.4rem;
  text-shadow: 0 0 12px var(--bb-glow);
}

.content h3 {
  color: var(--bb-dark);
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  font-style: italic;
}

.content p {
  margin-bottom: 1.4rem;
}

.content ul {
  margin: 1.2rem 0 1.2rem 1.8rem;
}

.content li {
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-size: 1.25rem;
  text-align: center;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--bb-dark);
}

.quote {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-left: 3px solid var(--bb-accent);
  font-style: italic;
  color: var(--bb-dark);
  background: rgba(158, 43, 37, 0.06);
}

.link-block {
  margin: 1.5rem 0;
}

.link-block a {
  color: var(--bb-accent);
  text-decoration: none;
  font-weight: 500;
}

.link-block a:hover {
  text-decoration: underline;
}

/* --------------------------
   ✨ WORKS CATALOGUE GRID v2.0 ✨
--------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.work-card {
  background: #2b241a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--bb-gold);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 15px rgba(212, 175, 55, 0.2);
}

.work-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.4s ease;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card-body {
  padding: 1.5rem;
  color: #f0e8d6;
}

.work-card-body h3 {
  color: var(--bb-gold);
  margin: 0 0 0.6rem 0;
  font-size: 1.3rem;
  border-bottom: none;
  padding-bottom: 0;
}

.work-card-body .stage {
  font-size: 0.9rem;
  color: var(--bb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.work-card-body p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #e0d8c5;
  margin-bottom: 0;
}

/* --------------------------
   FOOTER
--------------------------- */
footer {
  text-align: center;
  margin: 2rem 0 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bb-muted);
  color: var(--bb-muted);
  font-size: 0.9rem;
}

/* --------------------------
   RESPONSIVE ADJUSTMENTS
--------------------------- */
@media (max-width: 768px) {
  .hero-banner {
    height: 45vh;
  }

  .content {
    padding: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .nav-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }

  .image-divider {
    height: 22vh;
  }

  .works-grid {
    gap: 1.8rem;
  }

  .work-card img {
    height: 180px;
  }
}

/* Footer link styling */
footer a {
  color: var(--bb-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--bb-gold);
  text-decoration: underline;
}

/* Clean link styling — no default blue/purple */
.content a,
footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.content a:hover,
footer a:hover {
  color: var(--bb-accent);
}

/* =====================================
   CUSTOM LINK STYLING — NO DEFAULT BLUE/PURPLE
===================================== */

/* Base style: no underline, inherit text colour */
.content a,
footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Remove visited link styling */
.content a:visited,
footer a:visited {
  color: inherit;
}

/* --- Unique hover colours --- */

/* Library = Knowledge Cyan */
a.link-library:hover {
  color: #35d6ff;
}

/* House of Gold = Site Gold */
a.link-gold:hover {
  color: #d4af37;
}

/* ProtoSynthesis = Synthesis Purple */
a.link-synthesis:hover {
  color: #7c5cff;
}