/* Two Gallons of Mayo — Design System */
/* Typography: Bangers (headings) + Nunito (body) */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mayo-blue:       #1A6FD4;
  --mayo-blue-dark:  #0E4A9A;
  --mayo-blue-light: #4A9FE8;
  --mayo-yellow:     #F5C518;
  --mayo-cream:      #F5F0DC;
  --mayo-white:      #FFFFFF;
  --mayo-dark:       #0A1628;

  /* Derived tokens */
  --mayo-dark-muted:    rgba(10, 22, 40, 0.75);
  --mayo-yellow-hover:  #e0b010;
  --mayo-blue-glow:     rgba(26, 111, 212, 0.25);
  --mayo-shadow-sm:     0 2px 8px rgba(10, 22, 40, 0.12);
  --mayo-shadow-md:     0 4px 16px rgba(10, 22, 40, 0.18);
  --mayo-shadow-lg:     0 8px 32px rgba(10, 22, 40, 0.22);

  /* Layout */
  --nav-height: 70px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
}

/* ============================================================
   BASE / RESET
   ============================================================ */

/* Suppress text cursor on non-editable elements */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, li, ul {
  caret-color: transparent;
}
input, textarea {
  caret-color: auto;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background-color: var(--mayo-cream);
  color: var(--mayo-dark);
  padding-top: var(--nav-height);
  line-height: 1.65;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  min-height: 80vh;
}

/* Alternating section bands */
.section-white {
  background-color: var(--mayo-white);
}

.section-cream {
  background-color: var(--mayo-cream);
}

.section-light-blue {
  background-color: #EBF3FC;
}

.section-dark {
  background-color: var(--mayo-dark);
  color: var(--mayo-white);
}

/* Anchor offset for fixed nav */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Bangers utility — comic/gaming energy */
.game-caps {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1.game-caps { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2.game-caps { font-size: clamp(1.8rem, 4vw, 3rem); }
h3.game-caps { font-size: clamp(1.4rem, 3vw, 2.2rem); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--mayo-dark);
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.5);
}

.nav-brand-text {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--mayo-white);
  line-height: 1;
}

.nav-links {
  display: flex;
  height: 100%;
}

.nav-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  height: 100%;
  color: var(--mayo-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background-color: var(--mayo-yellow);
  transition: left var(--transition-normal), right var(--transition-normal);
}

.nav-link-item:hover {
  color: var(--mayo-yellow);
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  left: 0.5rem;
  right: 0.5rem;
}

.nav-link-item.active {
  color: var(--mayo-yellow);
}

/* Mobile nav */
.nav-mobile-menu {
  background-color: var(--mayo-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile-menu .nav-link-item {
  padding: 0.75rem 1.25rem;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile-menu .nav-link-item::after {
  bottom: 0;
  height: 2px;
  left: 1.25rem;
  right: 1.25rem;
}

/* Hamburger icon */
.nav-toggler {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--mayo-white);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-toggler:hover {
  border-color: var(--mayo-yellow);
  background-color: rgba(245, 197, 24, 0.1);
  color: var(--mayo-yellow);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: linear-gradient(
    135deg,
    var(--mayo-dark) 0%,
    var(--mayo-blue-dark) 40%,
    var(--mayo-blue) 100%
  );
  color: var(--mayo-white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric decoration */
.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(74, 159, 232, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: clamp(100px, 22vw, 180px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(10, 22, 40, 0.55));
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5.5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--mayo-white);
  text-shadow: 0 2px 8px rgba(10, 22, 40, 0.4);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.mayo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--mayo-yellow);
  color: var(--mayo-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  letter-spacing: 0.01em;
}

.mayo-btn:hover {
  background-color: var(--mayo-yellow-hover);
  color: var(--mayo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
  text-decoration: none;
}

.mayo-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.mayo-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: transparent;
  color: var(--mayo-white);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.mayo-btn-outline:hover {
  border-color: var(--mayo-yellow);
  color: var(--mayo-yellow);
  background-color: rgba(245, 197, 24, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Dark-context outline variant */
.mayo-btn-outline-dark {
  color: var(--mayo-blue);
  border-color: var(--mayo-blue);
  background-color: transparent;
}

.mayo-btn-outline-dark:hover {
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
  border-color: var(--mayo-blue);
}

/* Small button modifier */
.mayo-btn-sm {
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
}

/* ============================================================
   QUICK-NAV CARDS (Homepage 4-up grid)
   ============================================================ */
.quick-nav-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--mayo-shadow-sm);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--mayo-dark);
  display: block;
  transition:
    border-color var(--transition-normal),
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  height: 100%;
}

.quick-nav-card:hover {
  border-color: var(--mayo-blue);
  transform: translateY(-4px);
  box-shadow: var(--mayo-shadow-lg);
  color: var(--mayo-dark);
  text-decoration: none;
}

.quick-nav-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1;
}

.quick-nav-title {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--mayo-blue);
  margin-bottom: 0.5rem;
}

.quick-nav-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ============================================================
   RESOURCE CARDS
   ============================================================ */
.resource-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 4px solid var(--mayo-yellow);
  box-shadow: var(--mayo-shadow-sm);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal),
    border-left-color var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  box-shadow: var(--mayo-shadow-md);
  transform: translateY(-3px);
  border-left-color: var(--mayo-blue);
}

.resource-card-title {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--mayo-blue-dark);
  margin-bottom: 0.4rem;
}

.resource-card-desc {
  font-size: 0.92rem;
  color: #444;
  flex: 1;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ============================================================
   SERVICE ITEMS
   ============================================================ */
.service-item {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--mayo-shadow-sm);
  border-top: 4px solid var(--mayo-blue);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  height: 100%;
}

.service-item:hover {
  box-shadow: var(--mayo-shadow-md);
  transform: translateY(-3px);
}

.service-item-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-item-title {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--mayo-blue-dark);
  margin-bottom: 0.5rem;
}

.service-item-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--mayo-shadow-sm);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--mayo-shadow-md);
  transform: translateY(-3px);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  display: inline-block;
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-title {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--mayo-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--mayo-blue);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   TAG BADGES
   ============================================================ */
.tag-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.tag-badge:hover {
  opacity: 0.8;
  text-decoration: none;
}

.tag-badge-blue {
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
}

.tag-badge-yellow {
  background-color: var(--mayo-yellow);
  color: var(--mayo-dark);
}

.tag-badge-dark {
  background-color: var(--mayo-dark);
  color: var(--mayo-cream);
}

.tag-badge-light {
  background-color: #EBF3FC;
  color: var(--mayo-blue-dark);
}

/* ============================================================
   CTA BANNER (hire / support strip)
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--mayo-blue-dark) 0%, var(--mayo-blue) 100%);
  color: var(--mayo-white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-banner-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.cta-banner-text {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ============================================================
   STEP / HOW-IT-WORKS NUMBERS
   ============================================================ */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px var(--mayo-blue-glow);
}

/* ============================================================
   ABOUT / BIO
   ============================================================ */
.bio-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--mayo-yellow);
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.2);
}

.bio-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--mayo-yellow);
  background: linear-gradient(135deg, var(--mayo-blue-dark), var(--mayo-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin: 0 auto;
}

/* Game tag cloud */
.game-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   POST HEADER (blog post page)
   ============================================================ */
.post-header {
  background: linear-gradient(135deg, var(--mayo-dark) 0%, var(--mayo-blue-dark) 100%);
  color: var(--mayo-white);
  padding: 3.5rem 1.5rem 2.5rem;
}

.post-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body h2 {
  font-family: 'Bangers', cursive;
  letter-spacing: 0.03em;
  color: var(--mayo-blue-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-weight: 800;
  color: var(--mayo-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--mayo-dark) 0%, var(--mayo-blue-dark) 100%);
  color: var(--mayo-white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.page-header-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.page-header-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   SECTION ANCHORS (resource categories)
   ============================================================ */
.category-anchor {
  padding-top: 1rem;
}

.category-divider {
  border: none;
  border-top: 3px solid var(--mayo-yellow);
  width: 60px;
  margin: 0.5rem 0 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--mayo-dark);
  color: var(--mayo-white);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-brand-text {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--mayo-white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 240px;
}

.footer-heading {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--mayo-yellow);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--mayo-yellow);
}

.footer-connect a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.footer-connect a:hover {
  color: var(--mayo-yellow);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 1.25rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  background-color: var(--mayo-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  /* 404 uses full viewport, so offset the nav height for it */
  margin-top: calc(var(--nav-height) * -1);
  padding-top: var(--nav-height);
}

.error-404-number {
  font-family: 'Bangers', cursive;
  font-size: clamp(6rem, 20vw, 14rem);
  color: var(--mayo-yellow);
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 24px rgba(245, 197, 24, 0.3);
  margin-bottom: 0;
}

.error-404-msg {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Card wrapper for the form */
.contact-form-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--mayo-shadow-sm);
}

/* Sidebar */
.contact-sidebar {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--mayo-shadow-sm);
  height: 100%;
}

/* Labels */
.contact-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--mayo-dark);
}

.contact-required {
  color: #c0392b;
  margin-left: 0.15em;
}

/* Inputs + textarea */
.contact-input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--mayo-dark);
  background-color: var(--mayo-white);
  border: 2px solid #d1d9e0;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  caret-color: auto;
}

.contact-input:focus {
  border-color: var(--mayo-blue);
  box-shadow: 0 0 0 3px var(--mayo-blue-glow);
}

.contact-input::placeholder {
  color: #9aa5b4;
}

.contact-input-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

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

/* Per-field inline errors */
.contact-field-error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.2em;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* Alert banners (success / error) */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.contact-alert svg {
  flex-shrink: 0;
  margin-top: 0.1em;
}

.contact-alert-success {
  background-color: #d4edda;
  color: #1a5c2c;
  border: 1px solid #a3d9b1;
}

.contact-alert-error {
  background-color: #fde8e8;
  color: #7b1d1d;
  border: 1px solid #f5b7b1;
}

/* Spinner animation */
@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

.contact-spinner {
  animation: contact-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Sidebar info list */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #EBF3FC;
  color: var(--mayo-blue);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8a9a;
  margin-bottom: 0.15rem;
}

.contact-info-link {
  color: var(--mayo-blue);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition-fast);
}

.contact-info-link:hover {
  color: var(--mayo-blue-dark);
  text-decoration: underline;
}

.contact-sidebar-note {
  font-size: 0.9rem;
  color: #7a8a9a;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .contact-form-card,
  .contact-sidebar {
    padding: 1.5rem;
  }
}

/* ============================================================
   SUGGEST / CONTACT STRIP
   ============================================================ */
.suggest-strip {
  background-color: #EBF3FC;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  text-align: center;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-mayo-blue       { color: var(--mayo-blue) !important; }
.text-mayo-blue-dark  { color: var(--mayo-blue-dark) !important; }
.text-mayo-yellow     { color: var(--mayo-yellow) !important; }
.text-mayo-dark       { color: var(--mayo-dark) !important; }
.text-mayo-cream      { color: var(--mayo-cream) !important; }

.bg-mayo-blue         { background-color: var(--mayo-blue) !important; }
.bg-mayo-blue-dark    { background-color: var(--mayo-blue-dark) !important; }
.bg-mayo-dark         { background-color: var(--mayo-dark) !important; }
.bg-mayo-yellow       { background-color: var(--mayo-yellow) !important; }
.bg-mayo-cream        { background-color: var(--mayo-cream) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-banner {
    padding: 3.5rem 1rem;
  }

  .blog-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-nav-card {
    padding: 1.5rem 1rem;
  }

  .service-item {
    padding: 1.5rem;
  }

  .bio-photo,
  .bio-photo-placeholder {
    width: 160px;
    height: 160px;
  }

  .post-body {
    padding: 2rem 1rem;
  }
}

@media (max-width: 575px) {
  .hero-headline {
    font-size: 2rem;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

/* ============================================================
   SERVICE LIVE EXAMPLE
   ============================================================ */
.service-live-example {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #EBF3FC;
  color: var(--mayo-blue-dark);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.service-live-example a {
  color: var(--mayo-blue);
  font-weight: 800;
  text-decoration: none;
}
.service-live-example a:hover {
  text-decoration: underline;
}
.service-live-label {
  color: var(--mayo-blue-dark);
  font-weight: 700;
}

/* ============================================================
   SHARED TOOL STYLES
   ============================================================ */
.tool-panel {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--mayo-shadow-sm);
}

@keyframes tool-result-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tool-result-appear {
  animation: tool-result-appear 0.25s ease forwards;
}

/* ============================================================
   DICE ROLLER
   ============================================================ */
.dice-roller-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--mayo-shadow-sm);
}
.dice-result-display {
  background-color: var(--mayo-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dice-result-total {
  font-family: 'Bangers', cursive;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--mayo-yellow);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(245, 197, 24, 0.3);
}
.dice-result-expression {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}
.dice-faces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}
.dice-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
}
.dice-face-dropped {
  opacity: 0.35;
  text-decoration: line-through;
  background-color: #555;
}
.dice-face-max {
  background-color: var(--mayo-yellow);
  color: var(--mayo-dark);
  box-shadow: 0 0 8px rgba(245, 197, 24, 0.5);
}
.dice-face-min {
  background-color: #c0392b;
  color: var(--mayo-white);
}
.dice-modifier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.dice-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.dice-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background-color: var(--mayo-white);
  border: 2px solid #d1d9e0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mayo-dark);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
}
.dice-preset-btn:hover {
  border-color: var(--mayo-blue);
  transform: translateY(-2px);
}
.dice-preset-btn .dice-preset-notation {
  font-size: 0.72rem;
  color: #7a8a9a;
  font-weight: 600;
}
.dice-history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.9rem;
}
.dice-history-expression {
  font-weight: 700;
  color: var(--mayo-dark);
}
.dice-history-result {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: var(--mayo-blue);
}
.dice-history-time {
  font-size: 0.78rem;
  color: #7a8a9a;
}
.dice-syntax-help {
  background-color: #EBF3FC;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--mayo-dark);
  margin-top: 1rem;
}
.dice-syntax-help code {
  background-color: rgba(26, 111, 212, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
}
@keyframes dice-roll-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.dice-roll-animate {
  animation: dice-roll-bounce 0.3s ease;
}

/* ============================================================
   NPC GENERATOR
   ============================================================ */
.npc-output-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--mayo-yellow);
  padding: 2rem;
  box-shadow: var(--mayo-shadow-sm);
}
.npc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mayo-cream);
}
.npc-field {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0ede0;
}
.npc-field:last-child {
  border-bottom: none;
}
.npc-field-label {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--mayo-blue-dark);
  min-width: 140px;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.npc-field-value {
  flex: 1;
  color: var(--mayo-dark);
  line-height: 1.5;
}
.npc-reroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mayo-blue);
  background: transparent;
  color: var(--mayo-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.npc-reroll-btn:hover {
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
}
.npc-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--mayo-cream);
}
.npc-genre-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: transparent;
  color: var(--mayo-blue);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--mayo-blue);
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.npc-genre-btn:hover {
  background-color: rgba(26, 111, 212, 0.08);
}
.npc-genre-btn.active {
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
}
.npc-copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--mayo-dark);
  color: var(--mayo-white);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}
.npc-copy-toast.npc-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@keyframes npc-value-flash {
  0% { background-color: rgba(245, 197, 24, 0.3); }
  100% { background-color: transparent; }
}
.npc-value-flash {
  animation: npc-value-flash 0.4s ease;
}
@media (max-width: 767px) {
  .npc-field {
    flex-direction: column;
    gap: 0.3rem;
  }
  .npc-field-label {
    min-width: unset;
  }
  .npc-card-actions {
    flex-direction: column;
  }
  .npc-output-card {
    padding: 1.25rem;
  }
}

/* ============================================================
   INITIATIVE TRACKER
   ============================================================ */
.initiative-card {
  background-color: var(--mayo-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--mayo-shadow-sm);
}
.initiative-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.initiative-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--mayo-white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--mayo-blue);
  box-shadow: var(--mayo-shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-left-color var(--transition-fast);
}
.initiative-row.initiative-enemy {
  border-left-color: #c0392b;
}
.initiative-row.initiative-active {
  border-left-color: var(--mayo-yellow);
  box-shadow: 0 0 0 2px var(--mayo-yellow), var(--mayo-shadow-md);
  transform: scale(1.01);
  background-color: #FFFDF0;
}
.initiative-row-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.initiative-enemy .initiative-row-rank {
  background-color: #c0392b;
}
.initiative-active .initiative-row-rank {
  background-color: var(--mayo-yellow);
  color: var(--mayo-dark);
}
.initiative-row-body {
  flex: 1;
  min-width: 0;
}
.initiative-row-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--mayo-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.initiative-row-init {
  font-size: 0.8rem;
  color: #7a8a9a;
}
.initiative-score {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--mayo-blue-dark);
}
.initiative-row-hp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.initiative-hp-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid #d1d9e0;
  background: var(--mayo-white);
  color: var(--mayo-dark);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  padding: 0;
  line-height: 1;
}
.initiative-hp-btn:hover {
  border-color: var(--mayo-blue);
  background-color: #EBF3FC;
}
.initiative-hp-value {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 50px;
  text-align: center;
  color: var(--mayo-dark);
}
.initiative-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.initiative-type-toggle {
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--mayo-blue);
  background: transparent;
  color: var(--mayo-blue);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.initiative-type-toggle:hover {
  background-color: var(--mayo-blue);
  color: var(--mayo-white);
}
.initiative-type-toggle.is-enemy {
  border-color: #c0392b;
  color: #c0392b;
}
.initiative-type-toggle.is-enemy:hover {
  background-color: #c0392b;
  color: var(--mayo-white);
}
.initiative-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.initiative-remove-btn:hover {
  color: #c0392b;
  border-color: #c0392b;
}
.initiative-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #7a8a9a;
  font-size: 1rem;
}
.initiative-round-display {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--mayo-blue-dark);
  text-align: center;
  margin-bottom: 1rem;
}
.initiative-round-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8a9a;
  display: block;
}
@media (max-width: 767px) {
  .initiative-row {
    flex-wrap: wrap;
    padding: 0.6rem 0.75rem;
  }
  .initiative-row-hp {
    order: 10;
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f0ede0;
  }
  .initiative-hp-btn {
    width: 44px;
    height: 44px;
  }
  .initiative-card {
    padding: 1.25rem;
  }
}
