/* Rogue's Atelier - shared styles
   Palette: charcoal #2C2A26, cream #F0EBE0, gold #C49A4E
   Type: Cinzel (headings), Cormorant Garamond (subheads), Inter/system (body) */

:root {
  --charcoal: #2C2A26;
  --charcoal-raised: #35322C;
  --charcoal-deep: #232119;
  --cream: #F0EBE0;
  --cream-dim: rgba(240, 235, 224, 0.78);
  --cream-faint: rgba(240, 235, 224, 0.55);
  --gold: #C49A4E;
  --gold-bright: #D9B26A;
  --gold-line: rgba(196, 154, 78, 0.45);
  --gold-faint: rgba(196, 154, 78, 0.18);
  --panel-border: rgba(196, 154, 78, 0.35);
  --panel-radius: 10px;
  --font-head: "Cinzel", "Times New Roman", serif;
  --font-sub: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-bright); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cream); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Headings ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: 0.06em; text-transform: uppercase; }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); letter-spacing: 0.08em; text-transform: uppercase; }
h3 { font-size: 1.1rem; letter-spacing: 0.06em; }

.subhead {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

/* ---------- Gold rules and diamond ornaments ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0;
  border: 0;
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}
.rule .diamond { flex: none; }

.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.diamond.small { width: 5px; height: 5px; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(35, 33, 25, 0.96);
  border-bottom: 1px solid var(--gold-faint);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
}
.brand:hover { color: var(--cream); }
.brand img { width: 44px; height: 44px; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--gold-line);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal-deep);
  border-bottom: 1px solid var(--gold-line);
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.site-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-top: 1px solid rgba(196, 154, 78, 0.12);
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a.active {
  color: var(--gold-bright);
  position: relative;
}
.site-nav a.active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg) translateY(-2px);
  margin-right: 0.55rem;
}

@media (min-width: 940px) {
  .header-inner { gap: 3rem; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; margin-left: auto; }
  .site-nav.open { position: static; border: 0; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 0.2rem; }
  .site-nav a {
    padding: 0.5rem 0.55rem;
    border-top: 0;
    font-size: 0.74rem;
  }
}

/* Squeeze band: keep the nav on one row without crowding the wordmark */
@media (min-width: 940px) and (max-width: 1120px) {
  .header-inner { gap: 2rem; }
  .site-nav ul { gap: 0; }
  .site-nav a {
    padding: 0.5rem 0.32rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(196, 154, 78, 0.08), transparent 60%),
    var(--charcoal);
}
.hero .subhead { margin-top: 0.9rem; }
.hero-lede {
  max-width: 620px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  color: var(--cream-dim);
}
.hero .rule { max-width: 420px; margin: 1.6rem auto; }

/* Page heroes (interior pages) */
.page-hero {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(1.8rem, 5vw, 3rem);
  text-align: center;
}

/* ---------- Sections ---------- */

.section { padding: clamp(1.1rem, 3vw, 1.9rem) 0; }
.section:first-of-type { padding-top: clamp(2rem, 5vw, 3rem); }
.section:last-of-type { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title { text-align: center; }
.section-title + .rule { max-width: 320px; margin: 1.2rem auto 2.2rem; }

/* Panel sections: content sits on a raised rounded surface with a gold hairline */
.section.panel .container {
  width: min(1080px, calc(100% - 2rem));
  background: var(--charcoal-raised);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: clamp(1.6rem, 4.5vw, 2.75rem) clamp(1.1rem, 4vw, 2.5rem);
}

.prose { max-width: 680px; margin: 0 auto; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 1rem 0 0 1.2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose .lede {
  font-family: var(--font-sub);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--cream);
}

/* ---------- Maker's plate ----------
   The old bordered slab is retired; panel sections carry the surface now.
   .plate keeps only its typography via .pricing-note rules below. */

.plate { padding: 0; }

/* ---------- Service cards (index) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  background: var(--charcoal-raised);
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { color: var(--cream); }
.card .price {
  margin-top: 0.35rem;
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.card p { margin-top: 0.8rem; color: var(--cream-dim); font-size: 0.95rem; flex: 1; }
.card .card-link {
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card .card-link::after { content: " \2666"; color: var(--gold); font-size: 0.7em; }

/* ---------- How it works ---------- */

.steps { list-style: none; max-width: 680px; margin: 0 auto; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 1.6rem 3.4rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.6rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--gold-line);
}
.steps .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.steps .step-num b {
  transform: rotate(-45deg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-bright);
}
.steps p { color: var(--cream-dim); }
.steps p b { color: var(--cream); font-weight: 600; }

/* ---------- Pricing note ---------- */

.pricing-note { text-align: center; max-width: 680px; margin: 0 auto; }
.pricing-note .plate p {
  font-family: var(--font-sub);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--cream);
}
.pricing-note .plate p + p { margin-top: 1rem; color: var(--gold-bright); }

/* ---------- Buttons / CTA ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--gold);
  color: var(--charcoal-deep);
}

.cta-block { text-align: center; }
.cta-block .btn { margin-top: 1.4rem; }
.cta-block .cta-mail {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}

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

.contact-form {
  max-width: 680px;
  margin: 1.8rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.field .optional {
  text-transform: none;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cream-faint);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.85rem 0.95rem;
  background: var(--charcoal-deep);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}
.field select { appearance: none; -webkit-appearance: none; }
.field .select-wrap { position: relative; }
.field .select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 78, 0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--cream-faint); }

.btn-fill {
  display: inline-block;
  justify-self: center;
  padding: 0.95rem 2.6rem;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--charcoal-deep);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-fill:hover, .btn-fill:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }

.form-note {
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}
.form-note .gold { user-select: all; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--gold-faint);
  background: var(--charcoal-deep);
  padding: 2.8rem 0 2rem;
  text-align: center;
}
.site-footer .footer-lockup {
  max-width: 340px;
  margin: 0 auto 1.6rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  margin-bottom: 1.4rem;
}
.footer-nav a {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.footer-nav a:hover { color: var(--gold-bright); }
.site-footer .fine {
  font-size: 0.82rem;
  color: var(--cream-faint);
}
.site-footer .fine a { color: var(--gold-bright); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.gold { color: var(--gold-bright); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .nav-toggle span { transition: none; }
}
