/*
Theme Name: SAM Business
Theme URI: https://git.hoshy.co.uk/hoshy/sam-business-site
Author: SAM
Description: Reproducible first-party block theme for the SAM business and dogfood site.
Version: 0.1.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: sam-business
*/

:root {
  --sam-ink: #13251f;
  --sam-muted: #52645d;
  --sam-paper: #f6f4ec;
  --sam-white: #fffdf7;
  --sam-lime: #d9ff73;
  --sam-mint: #a9efcf;
  --sam-coral: #ff866d;
  --sam-line: rgba(19, 37, 31, 0.16);
  --sam-shadow: 0 24px 70px rgba(19, 37, 31, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 82% 3%, rgba(169, 239, 207, 0.38), transparent 27rem),
    var(--sam-paper);
  color: var(--sam-ink);
}

body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

.sam-site-shell {
  min-height: 100vh;
}

.sam-header {
  align-items: center;
  border-bottom: 1px solid var(--sam-line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.15rem 1.4rem;
}

.sam-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.sam-brand-mark {
  align-items: center;
  background: var(--sam-ink);
  border-radius: 50%;
  color: var(--sam-lime);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 2.4rem;
}

.sam-header .wp-block-site-title {
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin: 0;
}

.sam-header .wp-block-site-title a {
  color: var(--sam-ink);
  text-decoration: none;
}

.sam-header .wp-block-navigation-item__content {
  color: var(--sam-ink);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.sam-hero {
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 1.4rem clamp(4rem, 8vw, 7rem);
  position: relative;
}

.sam-hero::after {
  background:
    linear-gradient(90deg, var(--sam-line) 1px, transparent 1px),
    linear-gradient(var(--sam-line) 1px, transparent 1px);
  background-size: 34px 34px;
  border-radius: 999px;
  content: "";
  height: clamp(14rem, 32vw, 28rem);
  opacity: 0.36;
  position: absolute;
  right: -9rem;
  top: 2rem;
  transform: rotate(12deg);
  width: clamp(14rem, 32vw, 28rem);
  z-index: -1;
}

.sam-eyebrow {
  color: #365c4e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.sam-display {
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  letter-spacing: -0.068em;
  line-height: 0.91;
  margin: 0;
  max-width: 10.5ch;
}

.sam-lead {
  color: var(--sam-muted);
  font-size: clamp(1.15rem, 2.3vw, 1.48rem);
  line-height: 1.55;
  max-width: 45rem;
}

.sam-hero .sam-lead {
  margin: 2rem 0 2.3rem;
}

.wp-element-button,
.wp-block-button__link {
  border: 2px solid var(--sam-ink);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 760;
  padding: 0.9rem 1.3rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  box-shadow: 5px 5px 0 var(--sam-ink);
  transform: translate(-2px, -2px);
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--sam-ink);
}

.sam-proof-strip {
  border-bottom: 1px solid var(--sam-line);
  border-top: 1px solid var(--sam-line);
  gap: 0;
}

.sam-proof {
  border-right: 1px solid var(--sam-line);
  min-height: 13rem;
  padding: 2rem;
}

.sam-proof:last-child {
  border-right: 0;
}

.sam-proof h3,
.sam-proof p {
  margin-top: 0;
}

.sam-proof p:not(.sam-proof-number) {
  color: var(--sam-muted);
  font-size: 0.94rem;
}

.sam-proof-number {
  color: #5c7269;
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.sam-section {
  padding-bottom: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(4rem, 9vw, 8rem);
}

.sam-section h2,
.sam-dark-section h2,
.sam-page-intro h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.052em;
  line-height: 1;
}

.sam-split {
  gap: clamp(2rem, 7vw, 7rem);
}

.sam-split p {
  color: var(--sam-muted);
  font-size: 1.08rem;
}

.sam-panel {
  background: var(--sam-white);
  border: 1px solid var(--sam-line);
  border-radius: 1.25rem;
  box-shadow: var(--sam-shadow);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.sam-panel-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sam-check-list {
  list-style: none;
  padding: 0;
}

.sam-check-list li {
  border-top: 1px solid var(--sam-line);
  padding: 0.8rem 0 0.8rem 1.7rem;
  position: relative;
}

.sam-check-list li::before {
  color: #39755d;
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.sam-dark-section {
  background: var(--sam-ink);
  color: var(--sam-white);
  padding: clamp(4rem, 9vw, 8rem) max(1.4rem, calc((100vw - 1180px) / 2));
}

.sam-dark-section .sam-eyebrow {
  color: var(--sam-mint);
}

.sam-dark-section .wp-block-columns {
  gap: 2.5rem;
  margin-top: 3rem;
}

.sam-dark-section .wp-block-column {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.4rem;
}

.sam-dark-section p {
  color: rgba(255, 253, 247, 0.72);
}

.sam-cta {
  text-align: center;
}

.sam-cta > * {
  margin-left: auto;
  margin-right: auto;
}

.sam-cta .wp-block-buttons {
  justify-content: center;
  margin-top: 2rem;
}

.sam-page-intro {
  border-bottom: 1px solid var(--sam-line);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.sam-page-intro h1 {
  margin-bottom: 1.5rem;
  max-width: 13ch;
}

.sam-steps,
.sam-prose {
  padding-bottom: 6rem;
  padding-top: 4rem;
}

.sam-step {
  border-top: 1px solid var(--sam-line);
  gap: 3rem;
  padding: 2.2rem 0;
}

.sam-step h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin: 0;
}

.sam-step p,
.sam-prose p,
.sam-prose li {
  color: var(--sam-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.sam-card-grid {
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.sam-card {
  background: var(--sam-white);
  border: 1px solid var(--sam-line);
  border-radius: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.sam-card li {
  margin-bottom: 0.65rem;
}

.sam-quote {
  border-left: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  margin: 5rem auto;
  max-width: 26ch;
  text-align: center;
}

.sam-lab-intro {
  background: linear-gradient(135deg, rgba(217, 255, 115, 0.46), rgba(169, 239, 207, 0.25));
}

.sam-lab-panel {
  border-left: 7px solid var(--sam-coral);
  margin-bottom: 1rem;
  margin-top: 4rem;
}

.sam-footer {
  border-top: 1px solid var(--sam-line);
  color: var(--sam-muted);
  margin: 0 auto;
  max-width: 1180px;
  padding: 2.5rem 1.4rem 3rem;
}

.sam-footer .wp-block-site-title {
  font-size: 1rem;
  margin: 0;
}

.sam-footer a {
  color: inherit;
}

.sam-404 {
  min-height: 50vh;
  padding-bottom: 6rem;
  padding-top: 6rem;
  text-align: center;
}

@media (max-width: 760px) {
  .sam-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sam-proof {
    border-bottom: 1px solid var(--sam-line);
    border-right: 0;
    min-height: auto;
  }

  .sam-proof:last-child {
    border-bottom: 0;
  }

  .sam-hero .wp-block-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .sam-hero > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  .sam-display {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .sam-lead {
    font-size: 1.06rem;
  }

  .sam-hero .wp-block-button,
  .sam-hero .wp-block-button__link {
    width: 100%;
  }
}

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

  .wp-element-button,
  .wp-block-button__link {
    transition: none;
  }
}
