/* ============ Base ============ */
:root {
  --navy: #0a2a3f;
  --deep: #072031;
  --teal: #0f7f8c;
  --foam: #eef7f9;
  --coral: #ff6a3d;
  --coral-dark: #e4552b;
  --ink: #1b2b36;
  --muted: #5b7383;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.15; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 55%, var(--teal) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem 9rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  justify-items: center;
}

/* Side by side on wide screens, stacked on phones */
@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
    justify-items: start;
    text-align: left;
  }

  .hero-inner .form-card { justify-self: end; }
}

.logo {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  width: 74px;
  z-index: 3;
}

.logo svg { display: block; width: 100%; height: auto; }

@media (max-width: 540px) {
  .logo { top: 1rem; left: 1rem; width: 52px; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9fd8e2;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.hero-bullets {
  list-style: none;
  display: inline-block;
  text-align: left;
  margin-bottom: 2.25rem;
}

.hero-bullets li {
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #eaf6f9;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #9fd8e2;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subhead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: #d7ecf1;
  max-width: 34rem;
  margin: 0 auto 2.25rem;
}

.cta-button {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 1.05rem 2.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 106, 61, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-button:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.cta-microcopy {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #b7dde5;
}

/* Animated gulf water */
.waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}

.wave path { fill: #ffffff; }

.wave-back path { fill: rgba(255, 255, 255, 0.35); }

.wave-back {
  animation: drift 18s linear infinite;
}

.wave-front {
  animation: drift 11s linear infinite reverse;
}

@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-back, .wave-front { animation: none; }
}

/* ============ Lead form card (lives inside the hero) ============ */
.form-card {
  width: 100%;
  max-width: 30rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(4, 22, 33, 0.45);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--ink);
}

.form-card h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }

.form-intro { color: var(--muted); margin: -1rem 0 1.5rem; }

fieldset {
  border: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

legend {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.field { margin-bottom: 1rem; flex: 1; }

.field-row { display: flex; gap: 1rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  border: 1.5px solid #cfe0e6;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
}

textarea {
  font-family: inherit;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 127, 140, 0.15);
}

.field-error {
  color: #d64541;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.35rem 0 0.75rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem 1rem;
  margin-bottom: 0.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

input[type="file"] {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

/* Photo step: yes/no question + labeled photo squares */
.photo-question {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.choice-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.choice-btn {
  flex: 1;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--teal);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.choice-btn:hover {
  background: var(--teal);
  color: #fff;
}

.choice-btn-muted {
  border-color: #cfe0e6;
  color: var(--muted);
}

.choice-btn-muted:hover {
  background: var(--foam);
  color: var(--ink);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.photo-slot {
  aspect-ratio: 1;
  border: 2px dashed #cfe0e6;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background-size: cover;
  background-position: center;
  transition: border-color 0.15s ease;
}

.photo-slot:hover { border-color: var(--teal); }

.photo-slot.filled {
  border: 2px solid var(--teal);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.slot-icon { font-size: 1.4rem; }

.form-submit {
  width: 100%;
  font-size: 1.05rem;
}

.form-card .cta-microcopy { color: var(--muted); }

/* Two-step form */
.form-step { text-align: left; }

.form-step .cta-microcopy { text-align: center; }

/* ============ Standalone pages (boat details, thank you) ============ */
.page {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--deep) 0%, var(--navy) 55%, var(--teal) 100%);
  padding: 7rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page .form-card { max-width: 36rem; }

/* Evaluation wizard (progress bar + step nav) */
.wizard-progress {
  text-align: left;
  margin-bottom: 1.75rem;
}

.wizard-bar {
  height: 8px;
  background: #e3edf1;
  border-radius: 999px;
  overflow: hidden;
}

.wizard-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.wizard-label {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.wizard-nav { text-align: center; }

.wizard-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: underline;
}

.wizard-back:hover { color: var(--teal); }

/* Thank-you state */
.thanks { padding: 1.5rem 0; }

.thanks-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.thanks h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

.thanks p { color: var(--muted); }

/* ============ Testimonials ============ */
.testimonials {
  background: var(--foam);
  text-align: center;
  padding: 4rem 1.5rem;
}

.testimonials h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.testimonials-sub {
  color: var(--muted);
  margin-bottom: 2.25rem;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
}

.t-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(10, 42, 63, 0.1);
  padding: 1.75rem 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.t-stars {
  color: #f5a623;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.t-quote {
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.t-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--foam);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.t-city {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ FAQ ============ */
.faq {
  background: var(--foam);
  padding: 4rem 1.5rem;
  text-align: center;
}

.faq h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.faq-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(10, 42, 63, 0.1);
  padding: 0.5rem 1.5rem;
}

.faq-item + .faq-item {
  border-top: 1px solid #e3edf1;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 2.2rem 1.1rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item summary:hover { color: var(--teal); }

.faq-item p {
  color: var(--muted);
  padding: 0 2.2rem 1.25rem 0;
  line-height: 1.6;
}

/* ============ Brands we've sold ============ */
.sold {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
}

.sold h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.sold-sub {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 2.25rem;
}

.sold-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.4rem 3rem;
  max-width: 62rem;
  margin: 0 auto 2rem;
}

/* Text wordmarks standing in for logo images —
   swap for real logo files when we have them */
.sold-brand { color: #8ba4b1; line-height: 1; }

.w-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
}

.w-heavy {
  font-size: 1.3rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
}

.w-wide {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.w-slab {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sold-more {
  font-weight: 700;
  font-style: italic;
  color: #a9bcc6;
}

/* ============ Local strip ============ */
.local {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ Footer ============ */
footer {
  background: var(--navy);
  color: #9fc4d2;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}

footer strong {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

footer p + p { margin-top: 0.6rem; }

/* ============ Mobile ============ */
@media (max-width: 540px) {
  .field-row { flex-direction: column; gap: 0; }
  .hero { padding-top: 3.5rem; }
  .form-card { padding: 2rem 1.25rem; }
}
