/* =========================================================
   GenDex Studios — shared stylesheet
   Dark theme inspired by the Figma "business-website-layout"
   ========================================================= */

:root {
  --bg: #1b2230;
  --bg-alt: #232b3a;
  --bg-card: #2a3346;
  --border: #394258;
  --text: #e8ecf3;
  --text-muted: #aab2c2;
  --accent: #7a1f1f;
  --accent-hover: #9a2a2a;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Top navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(15, 20, 30, 0.85);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
}

.brand .monogram {
  font-size: 28px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand .wordmark {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--accent);
}

.nav-links .nav-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 40px 90px;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.55) 0%, rgba(10, 14, 22, 0.85) 100%),
    linear-gradient(120deg, #2b3244 0%, #1b2230 50%, #3a1f2a 100%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1.02;
  letter-spacing: 1px;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 4px;
}

.hero .subhead {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 28px;
  font-style: italic;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

/* ---------- Generic section ---------- */
.section {
  padding: 60px 40px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: 0.5px;
}

.section .intro {
  max-width: 820px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* ---------- Values (horizontal scroll rail) ---------- */
.values {
  background: var(--bg-alt);
}

/* Hint that the rail scrolls horizontally */
.scroll-hint {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: -12px 0 12px;
}

.h-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px;
  scroll-behavior: smooth;
  /* Hide scrollbar (Firefox) */
  scrollbar-width: none;
  /* Hide scrollbar (IE/Edge legacy) */
  -ms-overflow-style: none;
}

/* Hide scrollbar (WebKit: Chrome, Safari, modern Edge) */
.h-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.value-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card .icon {
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--text);
}

.value-card .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.value-card .divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 6px 0 14px;
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
}

.value-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Portfolio / gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 16 / 10;
  background: #0f141c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
}

.gallery-item {
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

/* Sliding caption overlay — dark gradient slides up from bottom on hover */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.78) 35%,
    rgba(0, 0, 0, 0.45) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption {
  transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.03);
}

.gallery-caption .caption-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: 0.3px;
}

.gallery-caption .caption-desc {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ---------- Trailers ---------- */
.trailers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trailer {
  aspect-ratio: 16 / 9;
  background: #0b0f17;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Social cards ---------- */
.socials-strip {
  background: var(--bg-alt);
  padding: 30px 40px;
}

.socials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.socials-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.socials-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.socials-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.social-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #111722;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.social-card .handle {
  font-family: var(--serif);
  font-size: 18px;
}

.social-card .blurb {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Services (Main page condensed list) ---------- */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  text-align: center;
}

.services-list .service h3 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
}

.services-list .service p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 360px;
  margin-inline: auto;
}

/* ---------- Services page (rich cards) ---------- */
.services-rich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  align-items: start;
}

.service-card .thumb {
  aspect-ratio: 4 / 3;
  background: #0f141c;
  border-radius: 4px;
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 8px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.future-division {
  margin-top: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.future-division h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 10px;
}

.future-division p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
}

/* ---------- About ---------- */
.about-body {
  max-width: 880px;
  margin: 0 auto;
}

.about-body p {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.8;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px 0 6px;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0f141c;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  margin-top: 20px;
}

.contact-info h3 {
  font-family: var(--serif);
  font-size: 18px;
  margin: 0 0 14px;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #11161f;
  padding: 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 36px;
}

/* ---------- Assets shop (Firefly-style cards, 4 x 5 centered) ---------- */
.shop {
  background: var(--bg-alt);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  justify-content: center;
  justify-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}

/* Horizontal-scroll variant of the shop (8 featured assets) */
.shop-rail {
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 4px 16px;
}

.shop-rail .asset-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}

.asset-card {
  background: #0e141d;
  border-radius: 14px;
  padding: 10px 10px 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.asset-card:hover {
  transform: translateY(-2px);
  background: #121a26;
}

.asset-card .thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a2a48 0%, #1d2640 50%, #2a1f2f 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.asset-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  padding: 0 6px;
  color: var(--text);
}

.asset-card p.desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
  padding: 0 6px;
  line-height: 1.5;
  min-height: 40px;
}

.asset-card .card-actions {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 0 6px;
}

/* Ghost/outline "Open" button */
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 26px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive shop grid */
@media (max-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 820px;
  }
}

@media (max-width: 720px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }
}

@media (max-width: 440px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

.footer