/* Geek World — Tyler, TX | site styles */

:root {
  --bg: #0f1016;
  --bg-alt: #171826;
  --panel: #1d1f30;
  --border: #2c2e44;
  --text: #e9e9f2;
  --text-dim: #a3a4bd;
  --purple: #9b6bff;
  --purple-dim: #6f4bd1;
  --green: #35e0a1;
  --amber: #ffb84d;
  --radius: 14px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 16, 22, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .d20 { width: 34px; height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }
.main-nav a.active { color: var(--green); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #a97dff, var(--purple)); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(155, 107, 255, 0.22), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(53, 224, 161, 0.16), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 380px; }

/* ---------- Quick info bar ---------- */

.quickbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.quickbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 24px;
  justify-content: space-between;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.quick-item strong { color: var(--text); font-weight: 600; }
.quick-item .ico { color: var(--green); flex: none; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head.left { margin: 0 0 40px; text-align: left; }

.alt-bg { background: var(--bg-alt); }

/* ---------- Cards grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--purple-dim); transform: translateY(-3px); }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 107, 255, 0.15);
  color: var(--purple);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Events list ---------- */

.event-list { display: flex; flex-direction: column; gap: 14px; }

.event-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.event-row .day {
  color: var(--green);
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.event-row h3 { margin-bottom: 6px; }
.event-row p { margin-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(53, 224, 161, 0.14);
  color: var(--green);
  margin-left: 8px;
  vertical-align: middle;
}

.note-box {
  margin-top: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.note-box strong { color: var(--text); }

/* ---------- Hours table ---------- */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child { color: var(--text-dim); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today td { color: var(--green); }
.hours-table tr.today td:first-child { font-weight: 700; }

/* ---------- Visit / map split ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.info-line {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-dim);
}
.info-line .ico { color: var(--purple); flex: none; margin-top: 2px; }
.info-line strong { display: block; color: var(--text); }

/* ---------- Photo gallery ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: start;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card.fit-contain img {
  height: auto;
  object-fit: initial;
}
.photo-card.fit-contain:hover img { transform: none; }
.photo-card .caption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.photo-inline {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-inline img { width: 100%; display: block; }

/* ---------- Why us list ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.reason {
  display: flex;
  gap: 14px;
}
.reason .ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 184, 77, 0.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reason h4 { margin-bottom: 4px; font-size: 1rem; }
.reason p { font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, rgba(155, 107, 255, 0.18), rgba(53, 224, 161, 0.12));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band .btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 50px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.social-row a:hover { color: var(--green); border-color: var(--green); text-decoration: none; }

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  padding: 60px 0 50px;
  background: radial-gradient(circle at 20% 0%, rgba(155, 107, 255, 0.16), transparent 50%);
  border-bottom: 1px solid var(--border);
}
.page-hero p.lead { max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--green); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .phone-link { display: none; }

  body.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 26px;
    gap: 18px;
  }

  .quickbar .wrap { flex-direction: column; gap: 10px; padding: 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 54px 0; }
}
