/* Brent Beadle staging — presentation layer */
:root {
  --color-bg: #f7f8f5;
  --color-surface: #ffffff;
  --color-accent: #1b4d3e;
  --color-accent-light: #2d6a52;
  --color-text: #1a1a1a;
  --color-muted: #4a5568;
  --color-border: #d8e0d8;
  --color-link: #1a5f4a;
  --color-hero-overlay: rgba(15, 45, 35, 0.55);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-width: 72rem;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

*,
*::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(--color-text);
  background: var(--color-bg);
}

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

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
}

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

/* Contact strip */
.contact-strip {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.contact-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: center;
}

.contact-strip a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-strip a:hover {
  text-decoration: underline;
}

.contact-strip__sep {
  opacity: 0.5;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
}

.brand__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Nav */
.nav-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}

.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav__list a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Hero */
.hero {
  margin: 0 -1.25rem 2rem;
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  background: var(--color-accent) url("https://www.brentbeadle.com/images/n_brunner.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-hero-overlay), transparent 70%);
}

.hero__content {
  position: relative;
  padding: 2rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 20ch;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  max-width: 42rem;
  opacity: 0.95;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

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

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

/* Sections */
.page-title {
  margin: 2rem 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--color-accent);
}

.page-intro {
  margin: 0 0 2rem;
  color: var(--color-muted);
  max-width: 50rem;
}

section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 1rem;
}

section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

ul.check-list {
  padding-left: 1.25rem;
}

ul.check-list li {
  margin-bottom: 0.5rem;
}

ul.check-list li strong {
  color: var(--color-accent);
}

/* Two-column section */
.split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .split--image-right {
    grid-template-columns: 1fr 1fr;
  }
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card--narrow {
  max-width: 36rem;
}

.card__heading {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
}

/* Quotes */
blockquote {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-muted);
}

.quote-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pricing table */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

th,
td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-accent);
  color: #fff;
}

tr:last-child td {
  border-bottom: none;
}

/* CTA band */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  margin: 0 -1.25rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  border: none;
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}

.cta-band a {
  color: #fff;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.gallery-item figcaption {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Collapsible story */
details.story {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-bottom: 1rem;
}

details.story summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  color: var(--color-accent);
}

details.story[open] summary {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #0f2d23;
  color: #c8ddd4;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer a {
  color: #a8e6cf;
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer__title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* Staging banner */
.staging-banner {
  background: #b45309;
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.staging-banner {
  display: none;
  }

/* Mobile nav */
@media (max-width: 47.99rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav__list {
    display: none;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__list a {
    padding: 0.5rem 0;
  }

.staging-banner {
  display: none;
  }
}
