/* ============================================================
   Orlin Studio — styles.css
   Mobile-first. No frameworks. Minimum 18px body text.
   ============================================================ */

/* === Custom Properties === */
:root {
  --cream:       #F7EFC9;   /* warm clapboard yellow — hero */
  --blue:        #2D3D72;   /* deep blueberry blue — headings, buttons */
  --blue-dark:   #1E2B52;   /* darker on hover/focus */
  --sage:        #7A9B75;   /* soft sage green accent */
  --sage-light:  #F2E6B8;   /* deeper yellow tint — seller section */
  --text:        #1C1C1C;   /* near-black body text */
  --text-mid:    #252525;   /* darkened — legibility over subtlety */
  --border:      #C9BFA3;   /* warm border color */
  --white:       #FFFFFF;
  --font-display: 'Titan One', cursive;
  --font-body:    'Nunito Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* === Base === */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
}

p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--blue);
}

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

/* === Typography === */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.5vw, 2.2rem);
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* === Layout === */
.container {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 0.85rem 2rem;
  min-height: 52px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--blue-dark);
  color: var(--white);
}

.btn-primary:focus-visible {
  background-color: var(--blue-dark);
  color: var(--white);
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background-color: var(--blue);
  color: var(--white);
}

.btn-secondary:focus-visible {
  background-color: var(--blue);
  color: var(--white);
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

/* === HERO === */
.hero {
  background-color: var(--cream);
  padding: 3rem 1.25rem 3.5rem;
  text-align: center;
  border-bottom: 3px solid var(--sage);
}

.hero-inner {
  max-width: 540px;
  margin: 0 auto;
}

.logo {
  width: 110px;
  margin: 0 auto 1.1rem;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.schedule {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.5;
}

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

.buyers {
  background-color: var(--white);
}

.sellers {
  background-color: var(--sage-light);
}

/* === Steps (How It Works) === */
.steps {
  list-style: none;
  margin: 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.1rem;
}

.step-content strong {
  display: block;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.step-content p {
  color: var(--text-mid);
  margin-bottom: 0;
}

/* Reassurance callout */
.reassurance {
  font-style: italic;
  color: var(--text-mid);
  background-color: var(--sage-light);
  border-left: 4px solid var(--sage);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2rem;
}

/* === App download CTA (step 1) === */
.app-cta {
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.qr-block {
  display: none;
}

.qr-img {
  display: block;
  width: 150px;
  height: 150px;
  background-color: var(--white);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.qr-block figcaption {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 0.4rem;
  text-align: center;
  max-width: 150px;
}

@media (min-width: 700px) {
  .qr-block {
    display: block;
  }
}

/* === Contact Form === */
.field {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.req {
  color: #9B2020;
  font-weight: bold;
}

.optional {
  font-weight: normal;
  color: var(--text-mid);
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--white);
  border: 2px solid var(--border);
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--sage);
  outline-offset: 1px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232D3D72' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

/* Honeypot — hidden from humans, visible to bots */
.bot-trap {
  display: none;
}

/* Thank-you message */
.thanks-message {
  font-size: 1.1rem;
  color: var(--blue);
  background-color: var(--white);
  border: 2px solid var(--sage);
  border-radius: 8px;
  padding: 1.5rem 1.5rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* === Validation === */
.field-error {
  display: block;
  color: #9B2020;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  min-height: 1.25em;   /* reserves space so layout doesn't jump when errors appear */
}

.submit-error {
  margin-top: 0.75rem;
  font-size: 1rem;
  min-height: 0;        /* no reserved space needed below the button */
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #9B2020;
}

/* === Footer === */
.site-footer {
  background-color: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.site-footer p {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: #B4D4C4;   /* light sage tint — readable on blue bg */
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: 2px;
}

/* === Responsive === */
@media (min-width: 480px) {
  .logo {
    width: 140px;
  }
}

@media (min-width: 600px) {
  .hero {
    padding: 4.5rem 2rem 5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .logo {
    width: 160px;
  }

  h3 {
    font-size: 1.4rem;
  }
}
