/* ==========================================================================
   Rez Studio — one-page landing
   Palette: warm cream ground, terracotta primary, gold accent, ink text.
   ========================================================================== */

:root {
  --cream:      #FBF6EF;
  --cream-deep: #F4EBDF;
  --card:       #FFFDF9;
  --ink:        #2E2622;
  --ink-soft:   #6B5B50;
  --muted:      #8A7768;
  --line:       #E7DACA;
  --clay:       #C4643F;
  --clay-deep:  #A24E2E;
  --clay-dark:  #8C3F22;
  --gold:       #C9A227;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(70, 52, 38, .06), 0 4px 12px rgba(70, 52, 38, .06);
  --shadow-md: 0 12px 32px rgba(70, 52, 38, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

a { color: var(--clay-deep); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }

.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-deep); font-weight: 600; margin-bottom: .9rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--muted); }

/* --- buttons -------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-deep); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-deep); }

.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* --- header --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(70, 52, 38, .06); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #F3E7D6 0 22%, var(--clay) 23% 68%, var(--clay-dark) 69%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.brand-name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--clay-deep); }
.site-nav a.btn { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; margin-inline: auto; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(196, 100, 63, .10), transparent 65%),
    radial-gradient(700px 380px at 5% 15%, rgba(201, 162, 39, .08), transparent 60%);
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2.2rem; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.trust li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .95rem; }
.trust li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}

.hero-art { position: relative; aspect-ratio: 10 / 9; }
.hero-img {
  position: absolute; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--cream-deep);
  box-shadow: var(--shadow-md); border: 1px solid rgba(255, 255, 255, .7);
}
.hero-img img { display: block; width: 100%; height: auto; }
.hero-img-1 { width: 78%; top: 0; right: 0; transform: rotate(2.5deg); }
.hero-img-2 { width: 58%; bottom: 0; left: 0; transform: rotate(-3.5deg); }

/* --- sections ------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--cream-deep); }

.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-sub { color: var(--ink-soft); }

/* --- filters -------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.chip {
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--clay); color: var(--clay-deep); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- product grid --------------------------------------------------- */

.grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-status { grid-column: 1 / -1; color: var(--muted); }

.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DCC9B2; }

.card-media { position: relative; margin: 0; background: var(--cream-deep); }
.card-media button {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in;
}
.card-media picture { display: block; }
.card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 1;
  background: var(--ink); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}

.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.card-blurb { font-size: .93rem; color: var(--ink-soft); flex: 1; }

.card-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.price { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.price small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--muted); }

.card-cta {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--clay-deep);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.card-cta:hover { color: var(--clay-dark); }

/* --- process -------------------------------------------------------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
}
.step-num {
  display: inline-block; font-family: var(--serif); font-size: 1.6rem;
  color: var(--gold); margin-bottom: .5rem;
}
.step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* --- custom --------------------------------------------------------- */

.custom-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}

.tick { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .7rem; }
.tick li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 6px; border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay); transform: rotate(-45deg);
}

.custom-art { margin: 0; }
.custom-art img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
}
.custom-art figcaption {
  margin-top: 1rem; font-size: .88rem; color: var(--muted); font-style: italic; text-align: center;
}

/* --- faq ------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative; font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.55rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq details p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 68ch; }

/* --- form ----------------------------------------------------------- */

.form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }

.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--clay); box-shadow: 0 0 0 3px rgba(196, 100, 63, .15); outline: none;
}
.field.invalid input, .field.invalid textarea { border-color: #B4453A; }

.error { display: none; margin: .4rem 0 0; font-size: .85rem; color: #B4453A; }
.field.invalid .error { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 1rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-note.ok { color: #2F6B4F; font-weight: 600; }
.form-note.bad { color: #B4453A; font-weight: 600; }

/* --- footer --------------------------------------------------------- */

.site-footer { background: var(--ink); color: #E9DFD4; padding: 3rem 0 2rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer .brand-name { margin: 0 0 .25rem; font-size: 1.3rem; color: #fff; }
.site-footer .muted { color: #A8988A; margin: 0; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: #E9DFD4; text-decoration: none; font-size: .93rem; }
.footer-links a:hover { color: var(--gold); }

.footer-fine {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-fine p { margin: 0; font-size: .85rem; }

/* --- lightbox ------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 5vmin;
  background: rgba(40, 32, 27, .82); backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 900px; width: 100%; }
.lightbox-figure img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.lightbox-figure figcaption {
  color: #F1E7DA; text-align: center; margin-top: 1rem; font-size: .95rem;
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 46px; height: 46px; font-size: 1.9rem; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, .12);
  border: 0; border-radius: 50%; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }

/* --- reveal --------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; order: -1; }
  .custom-art { order: -1; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem .25rem; font-size: 1.02rem; }
  .site-nav a.btn { margin-top: .5rem; justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
