/* West Texas Karate — Student Referral Portal (static) */
:root {
  --navy: #002633;
  --navy-fg: #ffffff;
  --primary: #c81010;
  --primary-fg: #ffffff;
  --accent: #7697a2;
  --bg: #f7f8f9;
  --fg: #2a2a2a;
  --card: #ffffff;
  --muted: #eef1f3;
  --muted-fg: #5c6b73;
  --border: #d8e0e4;
  --success: #1f7a4c;
  --radius: 0.5rem;
  --font-sans: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 3px rgba(0, 38, 51, 0.08), 0 4px 16px rgba(0, 38, 51, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

p {
  margin: 0;
}

button,
[role="button"] {
  cursor: pointer;
  font-family: inherit;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.container {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 38, 51, 0.1);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

@media (min-width: 640px) {
  .header-inner {
    height: 4.5rem;
  }
}

.logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .logo img {
    height: 3rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.nav a {
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  transition: background 0.15s ease;
}

.nav a:hover {
  background: var(--muted);
}

.nav a.btn-nav {
  background: var(--primary);
  color: var(--primary-fg);
}

.nav a.btn-nav:hover {
  background: #b00e0e;
}

.nav-hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .nav-hide-sm {
    display: inline;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--navy-fg);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/header.jpg") center / cover no-repeat;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 51, 0.8);
}

.hero-inner {
  position: relative;
  padding: 3.5rem 1rem;
}

@media (min-width: 640px) {
  .hero-inner {
    padding: 5rem 1.5rem;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 640px) {
  .eyebrow {
    font-size: 0.875rem;
  }
}

.hero h1 {
  margin-top: 0.75rem;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-wrap: balance;
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: #b00e0e;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-navy {
  background: var(--navy);
  color: var(--navy-fg);
}

.btn-navy:hover {
  background: #001a24;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--navy-fg);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-fg);
  border: none;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--muted);
}

.btn-lg {
  min-height: 3rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.btn-icon {
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.btn-block {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-block-sm {
    width: auto;
    min-width: 13.75rem;
  }
}

/* Sections */
.section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 4rem 0;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border: 0;
}

.section-head p,
.lede {
  margin-top: 1rem;
  color: var(--muted-fg);
  max-width: 36rem;
  margin-inline: auto;
}

/* Cards / rewards */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-highlight {
  border-color: rgba(200, 16, 16, 0.25);
  box-shadow: var(--shadow), 0 0 0 1px rgba(200, 16, 16, 0.08);
}

.icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  line-height: 1;
}

.icon-box.navy {
  background: var(--navy);
  color: #fff;
}

.icon-box.red {
  background: var(--primary);
  color: #fff;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card p,
.card li {
  font-size: 0.9375rem;
}

.reward-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(238, 241, 243, 0.85);
}

.reward-item.bordered {
  background: var(--card);
  border: 1px solid var(--border);
}

.reward-item .mark {
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 700;
}

.reward-item strong {
  color: var(--navy);
  display: block;
}

.muted {
  color: var(--muted-fg);
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Quote bands */
.quote-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}

.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  max-width: 42rem;
  margin-inline: auto;
  text-wrap: balance;
  line-height: 1.35;
}

.quote-soft {
  background: rgba(238, 241, 243, 0.65);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem 1rem;
}

.quote-soft .title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--navy);
  font-weight: 500;
  text-wrap: balance;
  max-width: 40rem;
  margin-inline: auto;
}

.quote-soft .sub {
  margin-top: 0.75rem;
  color: var(--muted-fg);
  font-size: 1.05rem;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.link-out:hover {
  text-decoration: underline;
}

/* Form */
.form-wrap {
  max-width: 36rem;
  margin-inline: auto;
}

.form-card {
  padding: 1.5rem;
}

.form-card + .form-card,
.referral-block {
  margin-top: 1.25rem;
}

.form-card h3,
.form-title-row h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.field {
  margin-top: 1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field label .opt {
  font-weight: 400;
  color: var(--muted-fg);
}

.field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 16, 0.15);
}

.field input::placeholder {
  color: #9aa7ad;
}

.names-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.names-row input {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
}

.names-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 16, 16, 0.15);
}

.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-actions {
  margin-top: 1.5rem;
}

/* Success */
.success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(31, 122, 76, 0.25);
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(31, 122, 76, 0.1);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success h3 {
  font-size: 1.5rem;
}

.success p {
  margin-top: 0.75rem;
  color: var(--muted-fg);
  max-width: 28rem;
  margin-inline: auto;
}

.success .tagline {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .success-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.hidden {
  display: none !important;
}

/* Toast */
.toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--accent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-logo {
  height: 3rem;
  width: auto;
}

.footer-blurb {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

.contact-row {
  display: flex;
  gap: 0.75rem;
}

.contact-row .dot {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.contact-row strong {
  display: block;
  color: #fff;
  margin-bottom: 0.15rem;
}

.contact-row a,
.contact-row span {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.contact-row a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Admin */
.admin-page {
  min-height: 100dvh;
  background: var(--bg);
}

.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-header img {
  height: 2.25rem;
  width: auto;
}

.admin-header h1 {
  font-size: 1.1rem;
}

.admin-main {
  padding: 2rem 0 3rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(216, 224, 228, 0.7);
  vertical-align: top;
}

td.referrer {
  font-weight: 600;
  color: var(--navy);
}

.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted-fg);
}

.badge {
  display: inline-block;
  background: var(--muted);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


.product-shot {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(238, 241, 243, 0.45);
  text-align: center;
}

.product-shot img {
  margin: 0 auto;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.reward-lead {
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.45;
}

.product-note {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(238, 241, 243, 0.85);
  font-size: 0.9rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  background: rgba(200, 16, 16, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
}


.urgency-banner {
  margin: 1rem auto 0;
  max-width: 36rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(200, 16, 16, 0.25);
  background: rgba(200, 16, 16, 0.06);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.urgency-banner-sm {
  margin-top: 1rem;
  font-size: 0.875rem;
}
