/* ==============================
   Coventry Roleplay - Shared Styles
   ============================== */
:root {
  --bg: #0b0f14;
  --panel: #0f1620;
  --text: #e6eef6;
  --muted: #96a3b3;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --accent: #00e5ff;
  --accent-2: #7c3aed;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Top Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(10px);
  background: linear-gradient(180deg, rgba(15,22,32,.75), rgba(15,22,32,.55));
  border-bottom: 1px solid var(--stroke);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand span {
  font-size: 1.2rem;
}

/* Logo in nav bar */
.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  border-radius: 10px; /* optional rounded corners */
}

/* Responsive logo for smaller screens */
@media (max-width: 840px) {
  .nav-logo {
    width: 28px;
    height: 28px;
  }
}

.links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: .25s ease;
}

.links a:hover {
  color: var(--text);
}

.links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.links a:hover::after {
  transform: scaleX(1);
}

.links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

@media(max-width:840px){
  .menu-toggle{display:inline-flex}
  .links{
    position:absolute;
    inset:60px 12px auto 12px;
    background:var(--panel);
    border:1px solid var(--stroke);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:10px;
    flex-direction:column;
    gap:6px;
    display:none;
  }
  .links.open{display:flex}
  .links a{padding:12px;border-radius:12px}
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--stroke);
  background: #0b0f14;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(11,15,20,.6), rgba(11,15,20,.85)), 
              url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: saturate(85%);
}

.hero.small {
  min-height: 35vh;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  padding: 64px 18px;
  display: grid;
  gap: 22px;
  align-items: center;
  justify-items: start;
}

.eyebrow {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.title .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: #cfe3f7;
  max-width: 60ch;
}

/* --- Buttons --- */
.btn {
  --g1: var(--accent);
  --g2: var(--accent-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: #051017;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(0,229,255,.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255,255,255,.05);
}

.btn.ghost:hover {
  transform: translateY(-2px);
}

/* --- Containers & Cards --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 18px;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 12px 0;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.team {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.services {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto 0 12px;
}

.service-logo {
  margin: 0 auto 12px;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* --- Footer --- */
footer {
  background: var(--panel);
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tiny {
  font-size: .9rem;
  color: var(--muted);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Form inputs & textarea */
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 16px 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);  /* matches card background */
  color: var(--text);
  font-size: 1rem;
  transition: border-color .25s ease, background .25s ease;
}

/* placeholder text */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

/* focus state */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}
