:root {
  --ink: #2a2320;
  --muted: #756c60;
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --line: #e0d5c3;
  --accent: #0f4c81;
  --accent-2: #b5651d;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(42, 35, 32, 0.12);
}

* { box-sizing: border-box; }

/* A class like .btn { display: inline-block } outranks the browser's default
   [hidden] rule, which silently leaves "hidden" elements on screen. This makes
   the hidden attribute mean what it says everywhere on the page. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(181, 101, 29, 0.06), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(15, 76, 129, 0.07), transparent 30%),
    var(--paper);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 14px;
}

.sub { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 56px);
  background: rgba(246, 241, 231, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.site-nav { display: flex; gap: 22px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent-2); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.lead { color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-img {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(1.5deg);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Samples */
.samples {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.samples h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.samples .sub { max-width: 640px; margin: 0 auto 30px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(42, 35, 32, 0.08);
}
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { padding: 10px; font-size: 0.85rem; color: var(--muted); }

/* Jellycat */
.jellycat {
  background: var(--paper-2);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.jellycat h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.jc-copy { max-width: 640px; margin: 0 auto 28px; }
.jc-copy .sub { color: var(--muted); }
.jc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.jc-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(42, 35, 32, 0.1);
}

/* Order */
.order {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}
.order-info h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
.facts li {
  padding-left: 26px;
  position: relative;
}
.facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* Order form */
.order-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.order-form h2 { font-size: 1.35rem; }

.field { display: flex; flex-direction: column; gap: 8px; }
fieldset.field { border: none; padding: 0; margin: 0; }
.field-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fdfbf6;
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

/* size options */
.size-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  background: #fdfbf6;
  transition: border-color 0.15s, background 0.15s;
}
.size-card input { position: absolute; opacity: 0; pointer-events: none; }
.size-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(15, 76, 129, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.size-name { font-weight: 700; color: var(--ink); }
.size-price { color: var(--accent); font-size: 0.9rem; }

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.total-label { color: var(--muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.total { font-size: 1.7rem; font-weight: 700; color: var(--accent); }

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(15, 76, 129, 0.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(15, 76, 129, 0.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.5); }
.btn-block { width: 100%; }

.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; }
.demo-note { text-align: center; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 56px); }
.faq h2 { text-align: center; margin-bottom: 24px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--accent-2); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(42, 35, 32, 0.5); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-card h2 { font-size: 1.4rem; }
.modal-card .sub { margin-bottom: 4px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.confirm-details {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}
.confirm-details strong { color: var(--accent); }

@media (max-width: 960px) {
  .hero, .order { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .jc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery, .jc-grid { grid-template-columns: 1fr; }
}

/* honeypot: off-screen rather than display:none, which some bots skip */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdeceb;
  border: 1px solid #f3c2be;
  color: #8c2f26;
  font-size: 0.85rem;
  line-height: 1.5;
}
.form-error a { color: inherit; }

.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero pattern rotator ---------------------------------------------------
   Fixed aspect-ratio matters: the patterns have differing native heights
   (Central Arkansas is 1000x1811 vs a typical 1000x1424), so letting the
   image size the figure would shift the whole page on every rotation. */
.pattern-rotator {
  position: relative;
  aspect-ratio: 3 / 4;   /* matches the original hero's proportions */
}
.pattern-rotator .pr-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pattern-rotator .pr-top {
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.pattern-rotator .pr-top.is-visible { opacity: 1; }

.pr-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(42, 35, 32, 0.72);
  color: #f6f1e7;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: opacity 250ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .pattern-rotator .pr-top { transition: none; }
}


/* Shipping / billing block in the review modal */
.ship-heading {
  font-size: 0.95rem;
  margin: 6px 0 -4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.check-row input { width: auto; margin: 0; }

.cost-lines {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.92rem;
}
.cost-lines div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
}
.cost-lines .cost-total {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 9px;
}

/* Ask-a-question helper ------------------------------------------------- */
.chat-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.32);
}
.chat-toggle:hover { background: #0d4372; }

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 61;
  width: min(370px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.95rem;
}
.chat-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.chat-msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; }
.chat-bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.chat-you { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-you a, .chat-bot a { color: inherit; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
}
.chat-chip:hover { background: var(--paper-2); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}
.chat-input-row input { flex: 1; }
.chat-input-row .btn { padding: 10px 16px; }

.chat-inquiry {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-inquiry .field-name { font-size: 0.72rem; }
.chat-error {
  margin: 0;
  font-size: 0.82rem;
  color: #8c2f26;
  background: #fdeceb;
  border: 1px solid #f3c2be;
  border-radius: 10px;
  padding: 8px 11px;
}

@media (max-width: 480px) {
  .chat-toggle { right: 12px; bottom: 12px; }
  .chat-panel { right: 12px; left: 12px; bottom: 68px; width: auto; }
}

/* ---- Trust bar (hero) ---- */
.trust-bar {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.trust-bar strong { color: var(--ink); }
.trust-bar .stars {
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

/* ---- Reviews ---- */
.reviews {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
}
.reviews-sub {
  color: var(--muted);
  max-width: 46rem;
  margin-bottom: 1.8rem;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.review {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(42, 35, 32, 0.06);
}
.review p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}
.review cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav gained a fifth link (Reviews); keep it from overflowing narrow screens. */
@media (max-width: 700px) {
  .site-header { gap: 12px; }
  .site-nav { gap: 14px; font-size: 0.92rem; }
}
@media (max-width: 560px) {
  .site-nav { gap: 11px; font-size: 0.85rem; }
  .site-nav a[href="#reviews"] { display: none; }
}
