/* ==========================================================================
   Derek Raymond Ops — ops.derekraymond.dev
   Single-page outreach site. Fluid layout, mobile-first. No build step.
   Layout scales continuously: fluid container padding + clamp() type, with
   three breakpoints (560 / 768 / 1024) for the structural changes only.
   ========================================================================== */

:root {
  /* One accent, used for every CTA and nothing else. */
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff4ff;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #5b6b7f;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --border: #e3e8ef;

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 28px rgba(15, 23, 42, 0.08);
  --shadow-cta: 0 4px 14px rgba(29, 78, 216, 0.24);

  /* Page gutter grows with the viewport instead of stepping at breakpoints. */
  --gutter: clamp(20px, 5vw, 48px);

  /* Full page width. Individual blocks cap their own measure below. */
  --container: 1120px;

  /* Comfortable reading measure for prose and forms. */
  --measure: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }

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

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(60px, 7vw, 74px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(16px, 0.9rem + 0.3vw, 19px);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.wordmark-ops {
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: clamp(15px, 0.9rem + 0.1vw, 16.5px);
  font-weight: 550;
  padding: 8px 4px;
}
.nav-link:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Buttons — one style everywhere
   -------------------------------------------------------------------------- */

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: clamp(16.5px, 1rem + 0.15vw, 18px);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  padding: clamp(15px, 1.7vw, 18px) clamp(24px, 3vw, 36px);
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.4);
  outline-offset: 2px;
}

.btn[disabled] { opacity: 0.65; cursor: default; }

@media (min-width: 560px) {
  .btn {
    display: inline-block;
    width: auto;
    min-width: 268px;
  }
}

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

.hero {
  padding-block: clamp(56px, 9vw, 116px) clamp(52px, 8vw, 104px);
  background:
    radial-gradient(1200px 460px at 50% -120px, var(--accent-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(33px, 2rem + 3.2vw, 62px);
  margin-inline: auto;
  max-width: 16ch;
}

.subhead {
  margin-top: clamp(14px, 2vw, 20px);
  margin-inline: auto;
  font-size: clamp(17.5px, 1rem + 0.5vw, 22px);
  color: var(--muted);
  max-width: 46ch;
  text-wrap: balance;
}

.hero .btn { margin-top: clamp(26px, 3.5vw, 38px); }

.hero-note {
  margin-top: 14px;
  font-size: clamp(14px, 0.85rem + 0.1vw, 15.5px);
  color: var(--muted);
}

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

.section {
  padding-block: clamp(52px, 8vw, 104px);
  scroll-margin-top: 80px;
}

.section h2 {
  font-size: clamp(24px, 1.3rem + 1.4vw, 36px);
}

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

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

.offer-card {
  max-width: var(--measure);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4.5vw, 48px) clamp(22px, 4vw, 52px) clamp(30px, 5vw, 52px);
}

.eyebrow {
  font-size: clamp(11px, 0.68rem + 0.1vw, 12.5px);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.offer-card h2 { margin-bottom: 12px; }

.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--border);
}

.price {
  font-size: clamp(38px, 2rem + 2vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.price-note {
  font-size: clamp(14.5px, 0.85rem + 0.15vw, 16.5px);
  color: var(--muted);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--ink-soft);
}

.check-list strong {
  color: var(--ink);
  font-weight: 650;
}

.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.check svg { width: 13px; height: 13px; }

.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block: clamp(24px, 3.5vw, 34px);
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 650;
}

.timeline-icon { display: inline-grid; place-items: center; color: var(--accent); }
.timeline-icon svg { width: 20px; height: 20px; display: block; }

.offer-note {
  margin-top: 14px;
  font-size: clamp(14px, 0.85rem + 0.1vw, 15.5px);
  color: var(--muted);
}

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

.contact-inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.contact-intro {
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: clamp(24px, 3.5vw, 34px);
  max-width: 48ch;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px clamp(16px, 2.5vw, 24px);
}

.field { display: grid; gap: 7px; align-content: start; }

/* Two-column form once there is room; wide fields keep the full width. */
@media (min-width: 640px) {
  .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}

label {
  font-size: clamp(14px, 0.85rem + 0.1vw, 15.5px);
  font-weight: 600;
  color: var(--ink-soft);
}

.optional { font-weight: 400; color: var(--muted); }

input, textarea {
  width: 100%;
  font: inherit;
  font-size: max(16px, 1rem); /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd6e2;
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

input:hover, textarea:hover { border-color: #b6c2d3; }

input:focus, textarea:focus {
  border-color: var(--accent);
  outline-offset: 1px;
}

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

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.field-error {
  font-size: 13.5px;
  color: #a5302a;
}

.form-actions {
  display: grid;
  gap: 14px;
  justify-items: stretch;
  margin-top: 4px;
}

@media (min-width: 560px) {
  .form-actions { justify-items: start; }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: clamp(14.5px, 0.9rem + 0.1vw, 16px);
  color: var(--ink-soft);
  max-width: 52ch;
}

.form-status:empty { display: none; }

.form-status.is-success {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 550;
}

.form-status.is-error {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fdf1f0;
  color: #a5302a;
}

.backup {
  margin-top: clamp(22px, 3vw, 30px);
  font-size: clamp(15px, 0.9rem + 0.15vw, 16.5px);
  color: var(--muted);
}

.backup a { font-weight: 600; }

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

.site-footer {
  padding-block: clamp(30px, 4vw, 44px) clamp(38px, 5vw, 56px);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-line {
  font-size: clamp(15px, 0.9rem + 0.15vw, 16.5px);
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-sub {
  margin-top: 6px;
  font-size: clamp(13.5px, 0.82rem + 0.1vw, 15px);
  color: var(--muted);
}

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