/* -----------------------------------------------------------------------
   sellyourmaps.com — Stylesheet
   Scholarly-meets-modern: Cormorant Garamond + Inter, cream + burgundy
----------------------------------------------------------------------- */

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

/* -----------------------------------------------------------------------
   CSS Variables
----------------------------------------------------------------------- */
:root {
  --cream:        #F8F5EE;
  --cream-dark:   #EFE9DC;
  --cream-deeper: #E5DDD0;
  --ink:          #2A2622;
  --ink-muted:    #6B6460;
  --ink-faint:    #A09890;
  --burgundy:     #6B2C2C;
  --burgundy-dark:#541F1F;
  --burgundy-pale:#F5EDED;
  --divider:      #D8D0C4;

  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;

  --max-prose:    720px;
  --max-wide:     1100px;

  --radius:       3px;
  --transition:   200ms ease;
}

/* -----------------------------------------------------------------------
   Reset & Base
----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -----------------------------------------------------------------------
   Typography
----------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* -----------------------------------------------------------------------
   Layout utilities
----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.prose { max-width: var(--max-prose); }
.prose-center { max-width: var(--max-prose); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background-color: var(--cream-dark); }

.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin-block: 0;
}

/* -----------------------------------------------------------------------
   Navigation
----------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav__brand:hover { text-decoration: none; color: var(--burgundy); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--burgundy); text-decoration: none; }

.nav__cta {
  background: var(--burgundy) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius) !important;
  letter-spacing: 0.04em !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--burgundy-dark) !important; }

/* -----------------------------------------------------------------------
   Buttons
----------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--burgundy);
  color: #fff;
}
.btn--primary:hover { background: var(--burgundy-dark); text-decoration: none; color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.btn--outline:hover { background: var(--burgundy); color: #fff; text-decoration: none; }

/* -----------------------------------------------------------------------
   Hero
----------------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(107,44,44,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(107,44,44,0.3);
  border-radius: 2px;
}

.hero__headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero__headline em {
  font-style: italic;
  color: var(--burgundy);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1.25rem;
}

/* Compass rose flourish */
.hero__flourish {
  display: none;
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  opacity: 0.07;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   Reasons (Why sell to me)
----------------------------------------------------------------------- */
.reasons__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.reasons__header .label { display: block; margin-bottom: 0.75rem; }

.reasons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.reason-card {
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--divider);
  border-radius: 4px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.reason-card:hover {
  border-color: rgba(107,44,44,0.25);
  box-shadow: 0 4px 20px rgba(42,38,34,0.06);
}

.reason-card__number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--burgundy);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
}

.reason-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.reason-card__body {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------
   How it works
----------------------------------------------------------------------- */
.steps__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.step:last-child { padding-bottom: 0; }

.step__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--burgundy);
  flex-shrink: 0;
  background: var(--cream);
  z-index: 1;
  position: relative;
}

.step__line {
  flex: 1;
  width: 1px;
  background: var(--divider);
  margin-top: 6px;
}

.step:last-child .step__line { display: none; }

.step__content { padding-top: 0.6rem; }
.step__title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.4rem; }
.step__body { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 0; }

/* -----------------------------------------------------------------------
   About
----------------------------------------------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-prose);
  margin-inline: auto;
}

.about__placeholder {
  border-left: 3px solid var(--burgundy);
  padding: 1rem 1.5rem;
  background: var(--burgundy-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* -----------------------------------------------------------------------
   FAQ teaser
----------------------------------------------------------------------- */
.faq-teaser {
  text-align: center;
}

.faq-teaser__questions {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-teaser__questions li {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.faq-teaser__questions li::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--burgundy);
  opacity: 0.5;
}

/* -----------------------------------------------------------------------
   Final CTA banner
----------------------------------------------------------------------- */
.cta-banner {
  background: var(--burgundy);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
}

.btn--light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: rgba(255,255,255,0.25); color: #fff; text-decoration: none; }

/* -----------------------------------------------------------------------
   Footer
----------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding-block: 2.5rem;
  font-size: 0.82rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}

.footer__contact a {
  color: rgba(255,255,255,0.55);
}
.footer__contact a:hover { color: rgba(255,255,255,0.9); }

.footer__copy {
  margin-top: 0.25rem;
}

/* -----------------------------------------------------------------------
   Submit page
----------------------------------------------------------------------- */
.submit-page {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.submit-page__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.submit-page__header p {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 520px;
  margin-inline: auto;
}

.form-wrapper {
  max-width: 680px;
  margin-inline: auto;
}

/* Photo guidance box */
.photo-guide {
  background: var(--burgundy-pale);
  border: 1px solid rgba(107,44,44,0.2);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.photo-guide__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  color: var(--burgundy);
}

.photo-guide ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.photo-guide li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}

.photo-guide li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--burgundy);
  opacity: 0.6;
}

/* Form groups */
.form-section {
  margin-bottom: 2rem;
}

.form-section__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--divider);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-group .required-mark {
  color: var(--burgundy);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107,44,44,0.08);
}

.form-control::placeholder { color: var(--ink-faint); }

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* File upload */
.file-upload-wrapper {
  position: relative;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--divider);
  border-radius: 4px;
  background: rgba(248,245,238,0.5);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  gap: 0.5rem;
}

.file-upload-label:hover {
  border-color: var(--burgundy);
  background: var(--burgundy-pale);
}

.file-upload-label.drag-over {
  border-color: var(--burgundy);
  background: var(--burgundy-pale);
}

.file-upload-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.file-upload-text {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.file-upload-text strong { color: var(--burgundy); }
.file-upload-hint { font-size: 0.78rem; color: var(--ink-faint); }

input[type="file"].file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.file-preview__item {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-dark);
}

.file-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.file-count {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}
.file-count.error { color: #c0392b; }
.file-count.ok { color: #2d7a2d; }

/* Honeypot */
.field--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
  pointer-events: none;
}

/* Form errors */
.form-error {
  display: none;
  background: #fdf0f0;
  border: 1px solid #e0a0a0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #8b2020;
  margin-bottom: 1.5rem;
}

.form-error.visible { display: block; }

/* Submit button */
.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------------------------------------------------
   Thanks page
----------------------------------------------------------------------- */
.thanks-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.thanks__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.thanks__heading { margin-bottom: 1rem; }

.thanks__body {
  color: var(--ink-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* -----------------------------------------------------------------------
   FAQ page
----------------------------------------------------------------------- */
.faq-page {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.faq-page__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: var(--max-prose);
  margin-inline: auto;
}

.faq-list {
  max-width: var(--max-prose);
  margin-inline: auto;
}

.faq-item {
  border-top: 1px solid var(--divider);
  padding-block: 1.75rem;
}

.faq-item:last-child { border-bottom: 1px solid var(--divider); }

.faq-item__question {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.faq-item__answer {
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.faq-placeholder {
  display: inline-block;
  background: var(--cream-dark);
  border-radius: 2px;
  padding: 0.1em 0.4em;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* -----------------------------------------------------------------------
   Responsive — tablet and up
----------------------------------------------------------------------- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .reasons__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 900px) {
  .hero__flourish { display: block; }

  .hero__inner {
    grid-template-columns: 1fr 340px;
  }

  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .step {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    padding-bottom: 0;
    padding-right: 2rem;
  }

  .step__indicator {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .step__line {
    width: auto;
    height: 1px;
    flex: 1;
    margin-top: 0;
    margin-left: 6px;
  }

  .step:last-child .step__line { display: flex; opacity: 0; }
}

/* -----------------------------------------------------------------------
   Animations
----------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-up:nth-child(3) { transition-delay: 0.2s; }
}
