/* ------------------------------------------------------------------
   BrianBarker.com
   Minimal, lightweight, dependency-free.
------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --surface: #ffffff;
  --text: #26292e;
  --text-strong: #17181b;
  --muted: #565b63;
  --border: #e4e6e9;
  --border-strong: #cdd0d5;
  --accent: #1e3a5f;
  --accent-soft: #eef2f6;
  --btn-bg: #1c1e21;
  --btn-bg-hover: #000000;
  --radius: 10px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --measure: 70ch;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover { text-decoration-thickness: 0.08em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-strong);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--text-strong);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--bg-soft);
  color: var(--text-strong);
}

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

.hero {
  padding: clamp(4.5rem, 11vw, 7.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-title {
  margin-bottom: 0.15em;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 1.1em;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 auto 2rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-strong);
  background: var(--bg-soft);
  color: var(--text-strong);
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  scroll-margin-top: var(--header-h);
}

.section-alt {
  background: var(--bg-soft);
}

.section-alt .section-heading h2,
.section-alt .section-heading p {
  text-align: center;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0.25rem auto 0;
}

.section-copy {
  max-width: var(--measure);
}

.section-copy h2 {
  margin-bottom: 0.75rem;
}

.section-copy p {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Steps (Domain Transactions)
------------------------------------------------------------------ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.975rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--text-strong);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.steps-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------
   Cards (Why own your exact domain)
------------------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
  margin-bottom: 0;
}

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

.contact-line {
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin-bottom: 2.25rem;
}

.email-link {
  font-weight: 700;
  text-decoration: none;
}

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

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-strong);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

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

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

.footer-nav ul {
  gap: 4px;
}

.footer-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
}

/* ------------------------------------------------------------------
   Utility
------------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  z-index: 50;
  background: var(--text-strong);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

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

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */

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

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 0.925rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
