/* Goat Breath Software — brand system */
:root {
  --ink: #14110f;
  --ink-soft: #2a2420;
  --parchment: #f4efe6;
  --parchment-dim: #e8e0d2;
  --stone: #6b6258;
  --stone-light: #9a9186;
  --rust: #c45c26;
  --rust-deep: #9a3f14;
  --rust-glow: #e07a3a;
  --sage: #5c6b52;
  --cream: #faf7f1;
  --white: #ffffff;
  --line: rgba(20, 17, 15, 0.12);
  --line-strong: rgba(20, 17, 15, 0.2);
  --shadow: 0 24px 60px rgba(20, 17, 15, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rust-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--rust);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout */
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--stone);
  font-size: 1.1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 17, 15, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--parchment-dim);
}

.nav-cta {
  margin-left: 0.5rem !important;
  background: var(--ink) !important;
  color: var(--cream) !important;
  padding: 0.55rem 1rem !important;
}

.nav-cta:hover {
  background: var(--rust) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(196, 92, 38, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(92, 107, 82, 0.1), transparent 50%),
    linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--sage);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 450;
  color: var(--rust-deep);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--stone);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}

.btn-primary:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.stat {
  min-width: 6.5rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  font-size: 0.88rem;
  color: var(--stone);
  font-weight: 600;
}

/* Hero card */
.hero-card {
  background: var(--ink);
  color: var(--parchment);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hero-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-glow);
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero-card p {
  margin: 0 0 1.5rem;
  color: var(--stone-light);
  font-size: 0.98rem;
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--parchment);
}

.stack-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}

/* Products */
.products {
  background: var(--parchment);
  border-block: 1px solid var(--line);
}

.product-card {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card-body {
  padding: 2rem 2rem 2.1rem;
}

.product-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

.product-card-body > p {
  margin: 0 0 1.15rem;
  color: var(--stone);
  max-width: 36rem;
}

.product-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.product-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.product-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-card-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.75rem;
  background:
    radial-gradient(ellipse 90% 70% at 80% 20%, rgba(61, 156, 240, 0.18), transparent 55%),
    var(--ink);
  color: var(--parchment);
  min-height: 100%;
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-glow);
  border: 1px solid rgba(224, 122, 58, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.product-url {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.product-aside-copy {
  margin: auto 0 0;
  color: var(--stone-light);
  font-size: 1.05rem;
  line-height: 1.45;
}

/* Services */
.services {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  border-color: rgba(196, 92, 38, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(20, 17, 15, 0.06);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--parchment);
  color: var(--rust-deep);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  color: var(--stone);
  font-size: 0.98rem;
}

.service-card.wide {
  grid-column: span 1;
}

/* About / approach */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  color: var(--stone);
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.principles {
  display: grid;
  gap: 1rem;
}

.principle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.principle strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 550;
  margin-bottom: 0.35rem;
}

.principle span {
  color: var(--stone);
  font-size: 0.95rem;
}

/* Process */
.process {
  background: var(--ink);
  color: var(--parchment);
}

.process .section-label {
  color: var(--rust-glow);
}

.process .section-head h2 {
  color: var(--cream);
}

.process .section-head p {
  color: var(--stone-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rust-glow);
  margin-bottom: 0.85rem;
  letter-spacing: 0.06em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

.step p {
  margin: 0;
  color: var(--stone-light);
  font-size: 0.95rem;
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-info {
  padding: 2.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(196, 92, 38, 0.12), transparent 55%),
    var(--parchment);
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 550;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--stone);
  margin: 0 0 1.75rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.contact-list a,
.contact-list span.value {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--rust);
}

.contact-form {
  padding: 2.25rem;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.15);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--stone);
}

.form-status {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.ok {
  color: var(--sage);
}

.form-status.err {
  color: var(--rust-deep);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--parchment);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 550;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-meta {
  color: var(--stone);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--stone);
  text-decoration: none;
  font-weight: 600;
}

.footer-meta a:hover {
  color: var(--rust);
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-panel,
  .product-card {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }
}
