:root {
  --bg: #f9f7f2;
  --bg-soft: #f1ede5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #fffdfa;
  --text: #1f1b16;
  --muted: #4b4338;
  --line: rgba(120, 90, 0, 0.14);
  --gold-deep: #785a00;
  --gold-mid: #b78a28;
  --gold-soft: #d5ae54;
  --shadow: 0 28px 60px rgba(31, 27, 22, 0.08);
  --radius: 8px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213, 174, 84, 0.15), transparent 34%),
    linear-gradient(180deg, #fcfbf8 0%, var(--bg) 36%, #f4f0e7 100%);
}

body.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(31, 27, 22, 0.06);
}

.site-header-inner,
.section,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 96px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: url("assets/shepherd-king-logo.png") center / contain no-repeat;
  border-radius: 4px;
}

.brand-mark strong {
  font-family: "Newsreader", serif;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: none;
  white-space: nowrap;
}

.brand-mark span {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.site-nav a {
  font-size: 0.95rem;
  color: #2f3a4a;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-deep);
}

.menu-toggle {
  display: none;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-soft));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.button-secondary {
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.28), transparent 75%);
  transform: translateX(-120%);
  transition: transform 380ms ease;
}

.button:hover::after {
  transform: translateX(120%);
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid,
.split-grid,
.story-grid,
.contact-grid,
.collection-grid,
.showcase-grid,
.stats-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.hero-copy,
.paper-panel,
.contact-panel,
.collection-card,
.showroom-card,
.detail-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy,
.paper-panel,
.contact-panel,
.detail-card {
  padding: clamp(1.5rem, 2vw, 2.2rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  font-weight: 700;
}

.hero-copy h1,
.page-title,
.section-title,
.collection-card h3,
.detail-card h3,
.showroom-card h3 {
  font-family: "Newsreader", serif;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  max-width: 12ch;
}

.hero-copy p,
.lead,
.section-copy,
.meta-text {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.site-header .inline-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin-top: 0;
}

.site-header .inline-actions .button {
  display: none;
}

.visual-stack {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.visual-stack .side-stack {
  display: grid;
  gap: 1rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(120, 90, 0, 0.94), rgba(213, 174, 84, 0.65)),
    var(--bg-soft);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(31, 27, 22, 0.22));
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease, filter 400ms ease;
}

.media-frame img.is-fallback {
  object-fit: cover;
  filter: saturate(0.7) contrast(1.02);
}

.collection-card:hover .media-frame img,
.showroom-card:hover .media-frame img,
.hero-grid .media-frame:hover img {
  transform: scale(1.04);
}

.stat-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #fff;
}

.stat-overlay strong {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 2rem;
}

.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--gold-deep);
}

.section-title,
.page-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card,
.showroom-card {
  overflow: hidden;
}

.collection-card .media-frame,
.showroom-card .media-frame {
  min-height: 360px;
}

.collection-card:nth-child(2) {
  margin-top: 2rem;
}

.collection-card .content,
.showroom-card .content {
  padding: 1.35rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.label-row span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.split-grid,
.story-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.story-grid .quote-box {
  margin-top: -3rem;
  margin-left: auto;
  max-width: 320px;
}

.quote-box {
  background: var(--surface-solid);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.quote-box p {
  margin: 0;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.stats-grid strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  color: var(--gold-deep);
}

.showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.link-card h3,
.faq-item h3 {
  margin: 0 0 0.7rem;
  font-family: "Newsreader", serif;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.detail-card {
  min-height: 100%;
}

.detail-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.page-hero {
  padding-top: 4rem;
}

.page-hero .page-title {
  max-width: 10ch;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-list {
  display: grid;
  gap: 1rem;
}

.admin-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.admin-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.admin-card strong {
  font-size: 1.05rem;
}

.admin-project {
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.wide-panel {
  min-height: 320px;
  display: grid;
  place-items: end start;
  padding: 2rem;
}

.wide-panel .overlay-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  color: #fff;
}

.wide-panel .overlay-copy h2 {
  margin: 0 0 0.8rem;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

.wide-panel .overlay-copy p {
  margin: 0;
  line-height: 1.75;
}

.contact-panel form {
  display: grid;
  gap: 1rem;
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(120, 90, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.95rem 1rem;
  color: var(--text);
}

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

.form-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.success-message,
.status-message {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--gold-mid);
  background: rgba(213, 174, 84, 0.12);
}

.success-message.is-visible,
.status-message.is-visible {
  display: block;
}

.status-message.is-error {
  border-left-color: #a1462d;
  background: rgba(161, 70, 45, 0.1);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(120, 90, 0, 0.08);
}

.footer-grid {
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  align-items: start;
}

.site-footer small,
.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.75;
}

.footer-title {
  margin: 0 0 0.7rem;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.footer-bottom {
  width: min(calc(100% - 2rem), var(--max));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(120, 90, 0, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .story-grid,
  .contact-grid,
  .collection-grid,
  .showcase-grid,
  .link-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .visual-stack {
    min-height: auto;
  }

  .collection-card:nth-child(2),
  .story-grid .quote-box {
    margin-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 74px;
  }

  .brand-mark::before {
    width: 44px;
    height: 44px;
  }

  .brand-mark strong {
    font-size: 1.25rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.58);
  }

  .site-header .button {
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 253, 250, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1,
  .page-title,
  .section-title {
    line-height: 1.02;
  }

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