/* The Purrington — regal theme */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --purple-deep: #2b1240;
  --purple: #3a1a5c;
  --purple-light: #55278a;
  --gold: #c9a227;
  --gold-bright: #e0bc4a;
  --gold-dim: #8a6c14;
  --ink: #161116;
  --paper: #f7f3ea;
  --paper-dim: #ece4d1;
  --rose: #e0576b;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --radius: 6px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--purple);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

a:hover { color: var(--purple-light); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--purple-deep);
  padding: 0.75em 1.2em;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  background: var(--purple-deep);
  color: var(--paper);
  padding: 1.1rem 0;
  border-bottom: 3px solid var(--gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

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

/* Gold rule divider */
.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  margin: 2.5rem 0;
}

.crest-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0;
  color: var(--gold);
}
.crest-divider::before,
.crest-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.crest-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.crest-divider svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--purple-deep), var(--purple) 70%);
  color: var(--paper);
  padding: 5rem 0 5.5rem;
  text-align: center;
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--paper);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__lede {
  max-width: 56ch;
  margin: 1.3rem auto 2.2rem;
  font-size: 1.15rem;
  color: var(--paper-dim);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85em 2em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn--gold {
  background: var(--gold);
  color: var(--purple-deep);
}
.btn--gold:hover { background: var(--gold-bright); color: var(--purple-deep); }

.btn--outline {
  border-color: var(--gold);
  color: var(--paper);
  background: transparent;
}
.btn--outline:hover { background: rgba(201, 162, 39, 0.15); color: var(--paper); }

.btn--full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: var(--paper-dim);
}

.section__head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 3rem;
}

.section__head .eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--paper);
  border: 1px solid rgba(43, 18, 64, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: 0 1px 3px rgba(43, 18, 64, 0.06);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--purple);
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin-bottom: 0; color: #3d3448; }

/* Location / info panel */
.info-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 760px) {
  .info-panel { grid-template-columns: 1fr; }
}

.info-panel__emblem {
  background: var(--purple-deep);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-panel__emblem svg { width: 100%; max-width: 220px; }

/* CTA banner */
.cta-banner {
  background: var(--purple-deep);
  color: var(--paper);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 { color: var(--paper); }
.cta-banner p { color: var(--paper-dim); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper-dim);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr 1fr;
}

@media (max-width: 700px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--gold-bright);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.site-footer a { color: var(--paper-dim); }
.site-footer a:hover { color: var(--gold-bright); }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.5rem; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1rem 0;
  border-top: 1px solid rgba(247, 243, 234, 0.12);
  font-size: 0.82rem;
  color: rgba(247, 243, 234, 0.55);
}

/* Contact page / form */
.page-header {
  background: var(--purple-deep);
  color: var(--paper);
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--paper); margin-bottom: 0.5rem; }
.page-header p { color: var(--paper-dim); max-width: 50ch; margin: 0 auto; }

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid rgba(43, 18, 64, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.5rem;
}

@media (max-width: 500px) {
  .form-wrap { padding: 1.75rem 1.25rem; }
}

.form-row {
  margin-bottom: 1.4rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 560px) {
  .form-row--split { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--purple-deep);
  font-size: 0.95rem;
}

.hint {
  font-weight: 400;
  color: #6b607a;
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid #c9c0d4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 110px; }

fieldset {
  border: 1px solid #c9c0d4;
  border-radius: var(--radius);
  padding: 1rem 1.2rem 0.5rem;
  margin: 0 0 1.4rem;
}
fieldset legend {
  font-weight: 600;
  color: var(--purple-deep);
  padding: 0 0.4em;
}
.radio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0;
}
.radio-row input { width: auto; }

.consent-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.consent-row input { width: auto; margin-top: 0.3rem; }
.consent-row label { font-weight: 400; margin-bottom: 0; }

/* Honeypot — visually hidden, still in tab order removed */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-row {
  margin: 1.6rem 0;
}

#form-status {
  margin-top: 1.2rem;
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  font-weight: 500;
  display: none;
}
#form-status.is-visible { display: block; }
#form-status.is-success {
  background: #e6f2e6;
  color: #1f5c2b;
  border: 1px solid #b6d9b6;
}
#form-status.is-error {
  background: #fbe8e8;
  color: #7a1f1f;
  border: 1px solid #e6b6b6;
}

.contact-alt {
  text-align: center;
  margin-top: 2rem;
  color: #6b607a;
  font-size: 0.95rem;
}

/* Privacy page */
.prose {
  max-width: 72ch;
  margin: 0 auto;
}
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.3rem; }

/* Design showcase page (emblems.html) */
.emblem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.emblem-card {
  background: #fff;
  border: 1px solid rgba(43,18,64,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.emblem-card h3 { margin-bottom: 0.3rem; }
.emblem-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.swatch-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.swatch__bg {
  padding: 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swatch__bg--light { background: var(--paper); border: 1px solid #ddd; }
.swatch__bg--dark { background: var(--ink); }
.swatch__label { font-size: 0.72rem; color: #6b607a; }
.mono-preview svg * { fill: #161116 !important; stroke: #161116 !important; }
