/*
Theme Name: SPYDER v0.1.9
Theme URI: https://spyder.co.nz/
Author: XtremeX
Description: Custom theme for SPYDER by XtremeX. v0.1.9 preserves the existing launch homepage and adds a reusable inner-page framework.
Version: 0.1.9
Text Domain: spyder
*/

html, body {
  margin: 0;
  padding: 0;
  background: #08090b;
}

/* =========================================================
   INNER PAGE SYSTEM
   Everything below is scoped to .spyder-inner-site so the
   existing v0.1.8 homepage remains visually unchanged.
   ========================================================= */

.spyder-inner-site {
  --sp-bg: #08090b;
  --sp-bg-soft: #101216;
  --sp-panel: #14171c;
  --sp-panel-2: #191d23;
  --sp-text: #f5f7f9;
  --sp-muted: #a8adb5;
  --sp-line: rgba(255,255,255,.12);
  --sp-accent: #e3262e;
  --sp-accent-2: #ff593f;
  --sp-max: 1220px;
  --sp-radius: 24px;

  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.spyder-inner-site *,
.spyder-inner-site *::before,
.spyder-inner-site *::after { box-sizing: border-box; }

.spyder-inner-site a { color: inherit; text-decoration: none; }
.spyder-inner-site img { max-width: 100%; height: auto; display: block; }
.spyder-inner-site button,
.spyder-inner-site input,
.spyder-inner-site select,
.spyder-inner-site textarea { font: inherit; }

.spyder-container {
  width: min(calc(100% - 40px), var(--sp-max));
  margin-inline: auto;
}

.spyder-content-width { max-width: 980px; }

/* Header */
.spyder-inner-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--sp-line);
  background: rgba(8,9,11,.88);
  backdrop-filter: blur(18px);
}

.spyder-header-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.spyder-brand {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  flex: 0 0 auto;
}

.spyder-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 29px;
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.07em;
  transform: skewX(-7deg);
}

.spyder-wordmark > span,
.spyder-brand small strong > span { color: var(--sp-accent); }

.spyder-brand small {
  margin-left: 9px;
  font-size: 10px;
  color: rgba(255,255,255,.62);
  letter-spacing: .05em;
}

.spyder-brand small strong { color: #fff; }

.spyder-primary-nav {
  margin-left: auto;
  min-width: 0;
}

.spyder-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spyder-menu a {
  color: #c8ccd2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.spyder-menu a:hover,
.spyder-menu .current-menu-item > a,
.spyder-menu .current_page_item > a { color: #fff; }

.spyder-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.spyder-button:hover { transform: translateY(-2px); }

.spyder-button-primary {
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(227,38,46,.25);
}

.spyder-button-primary:hover { box-shadow: 0 14px 36px rgba(227,38,46,.35); }

.spyder-header-book { flex: 0 0 auto; }

/* Page hero */
.spyder-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sp-line);
  background:
    radial-gradient(circle at 78% 18%, rgba(227,38,46,.14), transparent 34%),
    linear-gradient(180deg, #101216 0%, #08090b 100%);
}

.spyder-page-hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  top: -260px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.spyder-page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 84px;
}

.spyder-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #d8dbe0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.spyder-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sp-accent), var(--sp-accent-2));
}

.spyder-page-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: #fff !important;
  font-family: inherit !important;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 950;
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.spyder-page-lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: #b7bcc4;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.spyder-page-hero .spyder-button { margin-top: 30px; }

/* Standard WordPress content */
.spyder-page-content { padding: 78px 0 110px; }

.spyder-page-content h2,
.spyder-page-content h3,
.spyder-page-content h4 {
  color: #fff !important;
  font-family: inherit !important;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.spyder-page-content h2 {
  margin: 64px 0 20px;
  font-size: clamp(34px, 4vw, 54px);
  text-transform: uppercase;
}

.spyder-page-content h2:first-child { margin-top: 0; }
.spyder-page-content h3 { margin: 42px 0 15px; font-size: 30px; }

.spyder-page-content p,
.spyder-page-content li { color: #c1c5cb; font-size: 17px; }
.spyder-page-content p { margin: 0 0 22px; }
.spyder-page-content ul,
.spyder-page-content ol { padding-left: 24px; }
.spyder-page-content strong { color: #fff; }
.spyder-page-content a:not(.spyder-button) { color: #fff; text-decoration: underline; text-decoration-color: rgba(227,38,46,.75); text-underline-offset: 4px; }

/* Reusable components for upcoming Experiences / Spyders / Drive Plans pages */
.spyder-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.spyder-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.spyder-card-kicker {
  margin-bottom: 14px;
  color: #9298a1;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.spyder-card h3 {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 30px !important;
  text-transform: uppercase;
}

.spyder-card p { font-size: 15px; }

.spyder-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.spyder-plan {
  position: relative;
  padding: 30px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-panel);
}

.spyder-plan.is-featured {
  border-color: rgba(227,38,46,.55);
  box-shadow: 0 20px 60px rgba(227,38,46,.11);
}

.spyder-plan-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #dfe2e6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.spyder-cta {
  margin-top: 60px;
  padding: 38px;
  border: 1px solid rgba(227,38,46,.35);
  border-radius: var(--sp-radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(227,38,46,.16), transparent 34%),
    var(--sp-panel);
}

.spyder-cta h2 { margin-top: 0; }

.spyder-article + .spyder-article {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--sp-line);
}

/* Footer */
.spyder-inner-footer {
  border-top: 1px solid var(--sp-line);
  background: #060709;
}

.spyder-footer-row {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.spyder-footer-mark { font-size: 24px; }
.spyder-inner-footer p { margin: 11px 0 0; color: #777d86; font-size: 13px; }
.spyder-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.spyder-footer-links a { color: #8f959e; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.spyder-footer-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .spyder-primary-nav { display: none; }
  .spyder-header-row { min-height: 72px; }
  .spyder-header-book { margin-left: auto; }
  .spyder-card-grid,
  .spyder-plan-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .spyder-container { width: min(calc(100% - 28px), var(--sp-max)); }
  .spyder-brand small { display: none; }
  .spyder-wordmark { font-size: 25px; }
  .spyder-header-book { min-height: 42px; padding: 0 14px; font-size: 10px; }
  .spyder-page-hero-inner { padding: 82px 0 62px; }
  .spyder-page-hero h1 { font-size: clamp(45px, 14vw, 72px); }
  .spyder-page-content { padding: 55px 0 82px; }
  .spyder-card-grid,
  .spyder-plan-grid { grid-template-columns: 1fr; }
  .spyder-footer-row { min-height: 220px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .spyder-footer-links { justify-content: flex-start; }
}
