/* Royal Essence — shared styles */
:root {
  --gold: #daa520;
  --gold-deep: #a67c00;
  --gold-muted: rgba(218, 165, 32, 0.14);
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --paper: #faf8f4;
  --parchment: #f3efe6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans-caps: "Montserrat", system-ui, sans-serif;
  --sans-body: "Source Sans 3", system-ui, sans-serif;
  --ease-viscous: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  min-height: 100vh;
}

/* Fixed bar from js/site-header.js — px so it matches the injected header */
body.re-has-fixed-topbar {
  padding-top: 88px;
}

@media (min-width: 768px) {
  body.re-has-fixed-topbar {
    padding-top: 96px;
  }
}

/* Subtle parchment grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo {
  font-family: var(--sans-caps);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.logo span {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-deep);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.logo.logo--image {
  display: flex;
  align-items: center;
  line-height: 0;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0;
  white-space: normal;
}

.logo.logo--image img {
  height: 2.35rem;
  width: auto;
  max-width: 11.5rem;
  object-fit: contain;
  display: block;
}

.logo.logo--image.logo--image-footer img {
  height: 1.85rem;
  max-width: 9.5rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Page content fade */
main.page-content {
  animation: contentRise var(--duration) var(--ease-viscous) both;
}

@keyframes contentRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  margin: 0 -1.5rem 3.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 24, 20, 0.75) 0%,
    rgba(26, 24, 20, 0.2) 45%,
    rgba(26, 24, 20, 0.15) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--sans-caps);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans-caps);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold);
  transition: background var(--duration) var(--ease-viscous),
    color var(--duration) var(--ease-viscous), border-color 0.3s ease;
}

.btn:hover {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section {
  margin-bottom: 4.5rem;
}

.section-label {
  font-family: var(--sans-caps);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split.reverse .split-text {
    order: 2;
  }

  .split.reverse .split-visual {
    order: 1;
  }
}

.split-visual {
  border: 1px solid var(--gold-muted);
  overflow: hidden;
  background: var(--parchment);
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s var(--ease-viscous);
}

.split-visual:hover img {
  transform: scale(1.03);
}

.pillars {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.pillar {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gold-muted);
  transition: border-color var(--duration) var(--ease-viscous),
    box-shadow var(--duration) var(--ease-viscous);
}

.pillar:hover {
  border-color: rgba(218, 165, 32, 0.38);
  box-shadow: 0 24px 48px rgba(26, 24, 20, 0.06);
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.pillar p {
  margin: 0;
  font-size: 0.98rem;
}

.product-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gold-muted);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-viscous),
    box-shadow var(--duration) var(--ease-viscous);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(26, 24, 20, 0.08);
}

.product-card a {
  color: inherit;
  display: block;
}

.product-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

.product-card-body {
  padding: 1.5rem 1.25rem 1.75rem;
}

.product-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.product-meta {
  font-family: var(--sans-caps);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}

.product-card p {
  margin: 0;
  font-size: 0.95rem;
}

.product-detail-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-top: 1rem;
}

@media (min-width: 900px) {
  .product-detail-hero {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.product-detail-hero img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--gold-muted);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.detail-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.site-footer {
  border-top: 1px solid var(--gold-muted);
  background: var(--parchment);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--sans-caps);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold-deep);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-muted);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 520px;
}

.form-grid label {
  display: block;
  font-family: var(--sans-caps);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold-muted);
  background: var(--white);
  font-family: var(--sans-body);
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

/* Narrow text column */
.prose-narrow {
  max-width: 65ch;
}

.cta-band {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin: 0 -1.5rem;
  background: linear-gradient(
    135deg,
    var(--parchment) 0%,
    var(--white) 50%,
    var(--gold-muted) 100%
  );
  border-top: 1px solid var(--gold-muted);
  border-bottom: 1px solid var(--gold-muted);
}

.cta-band p {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}
