/* ==========================================================
   Reversal — shared stylesheet
   ========================================================== */

:root {
  --bg: #0e0e10;
  --surface: #18181c;
  --surface-2: #222228;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #ff4d2e;
  --accent-dark: #e03a1c;
  --border: #2e2e36;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

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

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 750;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

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

.accent {
  color: var(--accent);
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  font-family: inherit;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

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

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* The mirrored "R" gives the brand its "reversal" twist */
.logo span {
  display: inline-block;
  transform: scaleX(-1);
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

/* Hamburger toggle (CSS-only, using a hidden checkbox) */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

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

.hero {
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 77, 46, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 77, 46, 0.1), transparent 40%);
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 80px 0 50px;
  text-align: center;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Cards / Grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 77, 46, 0.12);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

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

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  border-radius: 24px;
  padding: 64px 32px;
  color: #fff;
}

.cta-band p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-band .btn {
  background: #fff;
  color: var(--bg);
}

.cta-band .btn:hover {
  background: var(--text);
}

/* ---------- Landing / Offer ---------- */

.offer {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
}

.offer h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.offer-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 800;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.form-card h2 {
  font-size: 1.6rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- Forms ---------- */

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.thank-you {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 46, 0.15);
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
}

/* When the form is submitted, JS adds .is-sent to the wrapper */
.is-sent form {
  display: none;
}

.is-sent .thank-you {
  display: block;
}

/* ---------- Pricing ---------- */

.pricing {
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier:hover {
  transform: none;
}

.tier-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 8px 0 4px;
  letter-spacing: -0.03em;
}

.tier-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  flex: 1;
}

.tier li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.tier li::before {
  content: "→ ";
  color: var(--accent);
}

.tier-featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 77, 46, 0.1), var(--surface) 60%);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(255, 77, 46, 0.15);
}

.tier-featured:hover {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- About ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 77, 46, 0.85), rgba(255, 122, 69, 0.6)),
    repeating-linear-gradient(45deg, #222 0 12px, #1a1a1a 12px 24px);
  display: grid;
  place-items: center;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: #fff;
}

.story-visual span {
  display: inline-block;
  transform: scaleX(-1);
}

.stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.team {
  grid-template-columns: repeat(4, 1fr);
}

.member {
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
}

.member h3 {
  margin-bottom: 2px;
}

.member .role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.info-card + .info-card {
  margin-top: 24px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hours td:last-child {
  text-align: right;
  color: var(--muted);
}

.info-card address {
  font-style: normal;
  color: var(--muted);
}

.info-card a {
  color: var(--accent);
  text-decoration: none;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-grid p {
  max-width: 300px;
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  text-decoration: none;
}

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

.copyright {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 960px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer,
  .story,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .offer {
    gap: 40px;
    padding: 56px 0;
  }
}

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .tier-featured,
  .tier-featured:hover {
    transform: none;
  }

  .pricing {
    gap: 36px;
  }

  /* Mobile nav */
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    margin-left: auto;
  }

  .nav-toggle-label span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-toggle:checked ~ nav .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 72px 0 60px;
  }
}

@media (max-width: 520px) {
  .team {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-actions .btn {
    width: 100%;
  }
}
