/* ==========================================
   Primary Stylesheet — tjmiranda.com
   Author: TJ Miranda
   Theme: dark, with gold and red accents
   ========================================== */

/* --- Design Tokens --- */
:root {
  color-scheme: dark;

  /* Buttons: blue, red on hover.
     For gold buttons, set --btn: #d4af37 and --btn-text: #111111 */
  --btn: #007bff;
  --btn-text: #ffffff;
  --btn-hover: #ff0000;
  --btn-hover-text: #ffffff;

  --gold: #d4af37;
  --gold-light: #f1d27a;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-line: rgba(212, 175, 55, 0.28);
  --gold-glow: rgba(212, 175, 55, 0.22);
  --red: #ff0000;
  --red-glow: rgba(255, 0, 0, 0.16);

  --ink: #f5f5f4;
  --text: #cfcfd3;
  --muted: #9c9ca4;
  --line: #2a2a2d;

  --bg: #0d0d0e;
  --bg-alt: #141415;
  --surface: #19191b;
  --field: #101011;
  --header-bg: #111112;
  --panel-bg: #141415;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: #111;
}

main {
  flex: 1; /* Pushes footer to the bottom */
}

img,
video {
  max-width: 100%;
  height: auto;
}

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

strong {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.25rem;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================
   Layout Helpers
   ========================================== */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 20px;
}

.wrap--narrow {
  max-width: 820px;
}

.section {
  padding-block: 80px;
}

.section--alt {
  background-color: var(--bg-alt);
  border-block: 1px solid #1d1d20;
}

.section--tight {
  padding-block: 56px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

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

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* ==========================================
   Buttons
   ========================================== */
.btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 12px 26px;
  background-color: var(--btn);
  border: none;
  border-radius: 4px;
  color: var(--btn-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover,
.submit-btn:hover {
  background-color: var(--btn-hover);
  color: var(--btn-hover-text);
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

.text-link {
  color: var(--gold);
  font-weight: 700;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--red);
}

/* ==========================================
   Header & Hamburger Menu (all devices)
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  height: var(--header-h);
  margin: 0 auto;
  padding-inline: 20px;
}

/* --- Custom Logo Styles (preserved) --- */
.logo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-prefix {
  font-weight: 300;
  color: #cccccc;
  font-size: 1.1rem;
  text-transform: lowercase;
}

.logo-name {
  font-weight: 800;
  color: #ffffff;
  background-color: #007bff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.logo-name:hover {
  background-color: #ff0000;
}

/* --- Hamburger Button --- */
.hamburger {
  position: relative;
  z-index: 3; /* stays above the open menu panel so it can close it */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 46px;
  height: 46px;
  padding: 13px 11px;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.hamburger:hover {
  border-color: var(--red);
}

.bar {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Slide-in Menu Panel --- */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-h) + 16px) 28px 32px;
  background:
    radial-gradient(circle at 100% 100%, var(--gold-glow), transparent 55%),
    var(--panel-bg);
  border-left: 1px solid var(--gold-line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
  overflow-y: auto;
}

.menu-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.menu-open .menu-panel {
  transform: translateX(0);
  visibility: visible;
}

.menu-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.nav-menu li {
  border-bottom: 1px solid var(--line);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  color: #e0e0e0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-link::after {
  content: "\2192";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.nav-link:hover {
  color: #ff0000;
  padding-left: 10px;
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-menu--secondary .nav-link {
  padding-block: 12px;
  font-size: 0.9rem;
}

.menu-panel .btn {
  width: 100%;
  margin-top: auto;
}

/* ==========================================
   Hero Carousel
   ========================================== */
.carousel {
  position: relative;
  background-color: #000;
  color: #fff;
  --carousel-interval: 6000ms;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  height: clamp(480px, 72vh, 680px);
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s ease;
}

.carousel-slide.is-active {
  transform: translateX(0);
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.carousel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 40px;
}

.carousel-content > * {
  max-width: 600px;
}

.carousel-content h1,
.carousel-content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.carousel-content p {
  color: #e5e5e5;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 28px;
}

.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
}

.carousel-controls .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.carousel-dot {
  position: relative;
  width: 28px;
  height: 6px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.carousel-dot[aria-current="true"] {
  width: 56px;
}

.carousel-dot[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  animation: carousel-progress var(--carousel-interval) linear forwards;
}

.carousel.is-paused .carousel-dot[aria-current="true"]::after {
  animation-play-state: paused;
}

.carousel.is-stopped .carousel-dot[aria-current="true"]::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes carousel-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-btn .icon-play {
  display: none;
}

.carousel.is-stopped .carousel-btn .icon-play {
  display: block;
}

.carousel.is-stopped .carousel-btn .icon-pause {
  display: none;
}

/* ==========================================
   Page Hero (inner pages)
   ========================================== */
.page-hero {
  padding-block: 72px 64px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 15%, var(--gold-glow), transparent 45%),
    radial-gradient(circle at 8% 100%, var(--red-glow), transparent 40%),
    #0a0a0a;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  font-size: 1.125rem;
  color: #d4d4d8;
}

.page-hero .meta {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==========================================
   Cards
   ========================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.card:hover,
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.card .text-link {
  margin-top: auto;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.card--hover:hover .icon-badge,
a.card:hover .icon-badge {
  color: #111;
  background: var(--gold);
}

/* --- Intro / Split --- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 25%, rgba(212, 175, 55, 0.4), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255, 0, 0, 0.3), transparent 50%),
    #0f0f10;
}

.portrait img {
  display: block;
  width: auto;
  max-height: 460px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-sm);
}

.stat strong {
  display: block;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* --- Check List --- */
.check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.check-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* --- CTA Band --- */
.cta-band {
  padding: 48px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, var(--gold-glow), transparent 50%),
    radial-gradient(circle at 0% 100%, var(--red-glow), transparent 45%),
    #111112;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ==========================================
   Services Page
   ========================================== */
.service-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  margin-bottom: 24px;
  padding: 36px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card .icon-badge {
  width: 64px;
  height: 64px;
  margin: 0;
}

.service-card .icon-badge svg {
  width: 30px;
  height: 30px;
}

.service-card h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.service-card .note {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--field);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

/* --- Contact Form Styles --- */
.form-container {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-container > h2 {
  margin-bottom: 6px;
  text-align: center;
}

.form-container > p {
  margin-bottom: 28px;
  color: var(--muted);
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid #36363a;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6f6f77;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.form-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-right {
  display: flex;
  flex-direction: column;
}

.message-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.message-group textarea {
  flex: 1;
  min-height: 220px;
  resize: vertical;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.form-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.form-check a {
  color: var(--gold);
  font-weight: 600;
}

.form-check a:hover {
  color: var(--red);
}

.button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* ==========================================
   FAQ Accordion
   ========================================== */
.faq-group {
  margin-bottom: 48px;
}

.faq-group > h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.faq-item {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}

.faq-item summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
  background: var(--gold-soft);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-item[open] summary::after {
  color: #111;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text);
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--gold);
  font-weight: 600;
}

.faq-answer a:hover {
  color: var(--red);
}

/* ==========================================
   Legal / Long-form Content
   ========================================== */
.prose {
  color: var(--text);
}

.prose h2 {
  margin-top: 48px;
  padding-top: 8px;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--gold-light);
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--gold);
  font-weight: 600;
}

.prose a:hover {
  color: var(--red);
}

.prose .callout {
  padding: 18px 20px;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose .callout--warn {
  border-left-color: var(--red);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.toc {
  padding: 24px 28px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.toc ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 1.2rem;
}

.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.table-scroll table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
}

.table-scroll th,
.table-scroll td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-scroll th {
  color: var(--gold-light);
  background: #212124;
}

.table-scroll tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   About & Resume Pages
   ========================================== */
.content-card {
  padding: 36px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card > h2 {
  font-size: 1.5rem;
}

.content-card > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 60%, var(--red) 100%);
  border-radius: 3px;
}

.biopic {
  float: right;
  width: 180px;
  margin: 0 0 16px 24px;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: linear-gradient(160deg, #3a2e0c, #0f0f10 70%);
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 6px 14px;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 520px;
}

.fun-facts {
  counter-reset: fact;
  list-style: none;
  padding: 0;
}

.fun-facts > li {
  counter-increment: fact;
  position: relative;
  padding: 0 0 12px 60px;
}

.fun-facts > li::before {
  content: counter(fact);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #111;
  font-weight: 800;
  background: var(--gold);
  border-radius: 50%;
}

.fun-facts > li > a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 40px;
}

.fun-facts > li > a:hover,
.fun-facts > li > a:hover strong {
  color: var(--red);
}

.resume-entry {
  position: relative;
  padding: 0 0 24px 28px;
  border-left: 2px solid var(--line);
}

.resume-entry:last-child {
  padding-bottom: 0;
}

.resume-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}

.resume-entry h3 {
  margin-bottom: 4px;
}

.resume-entry .meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================
   Footer Styles (preserved)
   ========================================== */
footer {
  background-color: #222;
  color: #e0e0e0;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  clear: both;
  border-top: 1px solid var(--gold-line);
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ff0000;
  text-decoration: none;
}

.footer-faqs {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-faqs a {
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.75rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #444;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.circle-icon:hover {
  transform: translateY(-5px);
  color: #ffffff !important;
}

.resume-icon:hover {
  background-color: #28a745;
}

.github-icon:hover {
  background-color: #000000;
}

.fb-icon:hover {
  background-color: #1877f2;
}

.social-svg {
  width: 22px;
  height: 22px;
}

footer p {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-top: 10px;
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait {
    min-height: 360px;
  }

  .portrait img {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 56px;
  }

  .form-container,
  .content-card,
  .service-card {
    padding: 24px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button-wrapper {
    justify-content: stretch;
  }

  .submit-btn {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 36px 20px;
  }

  .toc ol {
    columns: 1;
  }

  .carousel-slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
  }

  .carousel-controls .carousel-btn[data-action="prev"],
  .carousel-controls .carousel-btn[data-action="next"] {
    display: none;
  }

  .biopic {
    float: none;
    display: block;
    width: 160px;
    margin: 0 auto 20px;
  }

  .fun-facts > li {
    padding-left: 52px;
  }
}

/* Reduced motion: keep auto-advance, swap the slide movement for a fade */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-slide {
    transform: none !important;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .carousel-slide.is-active {
    opacity: 1;
  }

  a.card:hover,
  .card--hover:hover,
  .circle-icon:hover {
    transform: none;
  }
}
