@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Comfortaa:wght@400;700&family=Architects+Daughter&family=Lato:wght@400;700;900&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@800,900&display=swap");

:root {
  --bg-color: #222222;
  --bg-alt: #1c1c1c;
  --card-bg: #303030;
  --border-color: rgba(255, 255, 255, 0.15);
  --text-color: #dee2e6;
  --text-muted: #adb5bd;
  --accent: #375a7f;
  --accent-alt: #f39c12;
  --font-nav: "Bowlby One SC", "Segoe UI", cursive;
  --font-title: "Cabinet Grotesk", "Segoe UI", Arial, sans-serif;
  --font-heading: "Lato", "Segoe UI", Arial, sans-serif;
  --font-body: "Comfortaa", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-handwritten: "Architects Daughter", "Segoe UI", cursive;
  --radius: 6px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(34, 34, 34, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-nav);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-nav);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-staff {
  gap: 6px;
  border: 1px solid var(--border-color);
  padding: 0 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-staff:hover {
  border-color: var(--accent);
  color: #fff !important;
}

.nav-cta {
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0 18px;
  border-radius: 999px;
  color: #fff !important;
  white-space: nowrap;
}

.nav-cta:hover {
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.3;
  margin: 0 0 18px;
  color: var(--text-muted);
}

.hero p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-alt);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Sections */
section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 46px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.7rem;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px;
}

@media (min-width: 620px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Feature cards (home page unified services + gallery) */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.feature-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-banner {
  transform: scale(1.05);
}

.feature-body {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.feature-icon-discord {
  background: #5865f2;
}

.feature-icon-minecraft {
  background: #4c8c3c;
}

.feature-body h3 {
  font-family: var(--font-title);
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.feature-body p {
  font-family: var(--font-handwritten);
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 14px;
}

.feature-badge {
  align-self: flex-start;
  background: var(--accent-alt);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.feature-link {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: auto;
  transition: color 0.2s ease;
}

.feature-card:hover .feature-link {
  color: var(--accent-alt);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-banner {
  width: calc(100% + 56px);
  max-width: none;
  height: 200px;
  object-fit: cover;
  object-position: center;
  margin: -28px -28px 20px;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-banner {
  transform: scale(1.06);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text-color);
}

.card p {
  font-family: var(--font-handwritten);
  color: var(--text-muted);
  margin: 0 0 14px;
  font-size: 1rem;
}

.card .lead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--font-handwritten);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  object-fit: cover;
  color: #fff;
  overflow: hidden;
}

/* Team */
.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  font-size: 1.3rem;
}

.team-card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.team-card .role {
  font-family: var(--font-handwritten);
  color: var(--accent-alt);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.contact-card a.value {
  color: var(--accent);
  font-weight: 600;
  word-break: break-word;
}

/* CTA banner */
.cta-banner {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 50px 24px;
  box-shadow: var(--shadow-sm);
}

.cta-banner h2 {
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-family: var(--font-nav);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--text-color);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

/* Quick editor */
.editor-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 0.72rem;
  cursor: pointer;
}

.editor-launcher:hover {
  background: #426c98;
}

.editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  display: flex;
  width: min(460px, 100vw);
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  background: #202020;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.editor-drawer.is-open {
  transform: translateX(0);
}

.editor-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.editor-drawer-header h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.editor-drawer-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.editor-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

.editor-fields {
  flex: 1;
  padding: 22px 24px;
  overflow-y: auto;
}

.editor-group + .editor-group {
  margin-top: 28px;
}

.editor-group-title {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-alt);
  font-family: var(--font-nav);
  font-size: 0.72rem;
}

.editor-field {
  display: block;
  margin-bottom: 14px;
}

.editor-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #151515;
  color: var(--text-color);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.editor-field textarea {
  min-height: 76px;
  resize: vertical;
}

.editor-field input:focus,
.editor-field textarea:focus {
  border-color: var(--accent-alt);
  outline: none;
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--border-color);
}

.editor-action {
  min-height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-color);
  font-family: var(--font-nav);
  font-size: 0.68rem;
  cursor: pointer;
}

.editor-action-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.editor-action-danger {
  color: #f48b8b;
}

@media (max-width: 620px) {
  .editor-launcher {
    right: 16px;
    bottom: 16px;
  }

  .editor-drawer-header,
  .editor-fields,
  .editor-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Responsive nav */
@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: none;
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    margin-top: 6px;
  }
}
