/* ============================================================
   WELandscape — quote page styles

   Every value here is lifted from the design system already in
   index.html: same custom properties, same fonts, same 6px card
   radius, same two-layer card shadow, same 80px/48px section
   rhythm, same button treatments. No new visual patterns.

   The one addition is --error, because the palette had no colour
   for "this field is wrong" and an inline error has to be legible
   against the off-white card. It is a desaturated brick chosen to
   sit with the stone and green rather than a stock alert red.

   NOTE ON DUPLICATION: the nav, mobile menu, footer and button
   rules below are copied from index.html's inline <style> block,
   because that block is inline and cannot be shared. They are
   identical today. If the site ever grows a third page, extract
   this chrome into a real shared stylesheet rather than copying
   it again — see the Stage 4 report.
   ============================================================ */

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

/* ── Custom properties (identical to index.html) ── */
:root {
  --green:     #1C3A2B;
  --offwhite:  #F7F4EE;
  --stone:     #8C7B6B;
  --sky:       #6FA3BF;
  --charcoal:  #1A1A1A;
  --line:      #D0C9BE;
  --error:     #9B2C1F;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--charcoal);
}

/* ── Nav (copied from index.html) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green);
  padding: 14px 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--offwhite);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 150ms ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; border-bottom: 1px solid var(--sky); padding-bottom: 2px; }

.nav-logo {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 3px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--offwhite);
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--green);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 40px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--offwhite);
  text-decoration: none;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a:hover { opacity: 1; }

/* ── Page header (same green band + Playfair italic as the hero) ── */
.quote-header {
  background: var(--green);
  padding: 64px 40px 56px;
  text-align: center;
  color: var(--offwhite);
}

.quote-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.quote-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  text-wrap: balance;
}

.quote-subhead {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  opacity: 0.8;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

.quote-callback {
  margin-top: 28px;
  font-size: 0.9375rem;
}

.quote-callback a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.quote-callback a:hover { border-bottom-color: var(--sky); }

/* ── Form ── */
.quote-main { padding: 56px 40px 80px; }

.form-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  padding: 36px 32px;
  max-width: 620px;
  margin: 0 auto;
}

.field { margin-bottom: 26px; }
.field:last-of-type { margin-bottom: 0; }

.field label,
.fieldset-legend {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.optional {
  font-weight: 400;
  color: var(--stone);
  font-style: italic;
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--stone);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* 16px minimum on inputs: anything smaller makes iOS Safari zoom the
   page on focus, which is miserable one-handed. Tall targets for the
   same reason — these get filled in on a phone, outdoors. */
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 14px;
  min-height: 52px;
  transition: border-color 150ms ease;
}

.field textarea {
  min-height: 130px;
  line-height: 1.6;
  resize: vertical;
}

.field select {
  appearance: none;
  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' fill='none' stroke='%231A1A1A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.file-label:focus-within {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}

.field-error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
  margin-top: 8px;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--error); }
.field.invalid .field-error { display: block; }

/* Contact pair — phone and email sit together because either one
   satisfies the requirement. */
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-pair > div { min-width: 0; }

.field-pair label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #444;
}

/* Photos */
.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px dashed var(--line);
  border-radius: 4px;
  padding: 18px 14px;
  min-height: 60px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.file-label:hover { border-color: var(--sky); background: rgba(111, 163, 191, 0.05); }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.file-list {
  list-style: none;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #444;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.file-list li:last-child { border-bottom: none; }

.file-remove {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--error);
  cursor: pointer;
  padding: 6px 8px;
}

/* Honeypot — off-screen rather than display:none, because some bots
   skip hidden inputs. Never focusable, never announced. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit */
.form-actions {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.btn-sky {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--sky);
  border: none;
  padding: 16px 28px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
  min-height: 54px;
  transition: opacity 150ms ease;
}

.btn-sky:hover { opacity: 0.88; }
.btn-sky[disabled] { opacity: 0.6; cursor: default; }

.form-footnote {
  font-size: 0.8125rem;
  color: var(--stone);
  line-height: 1.65;
  text-align: center;
  margin-top: 16px;
}

/* Form-level status message (validation summary / submit failure) */
.form-status {
  display: none;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

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

.form-status.error {
  background: rgba(155, 44, 31, 0.07);
  border: 1.5px solid var(--error);
  color: var(--error);
}

.form-status.error a { color: var(--error); }

/* ── Success state (green card, matches the pricing tier treatment) ── */
.success-card {
  display: none;
  background: var(--green);
  border-radius: 6px;
  padding: 44px 32px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--offwhite);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.success-card.visible { display: block; }

.success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check svg { width: 26px; height: 26px; }

.success-card h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.875rem;
  margin-bottom: 14px;
}

.success-card p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 420px;
  margin: 0 auto 20px;
}

.success-card p:last-child { margin-bottom: 0; }

.success-card a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

.success-card a:hover { border-bottom-color: var(--sky); }

/* ── Footer (copied from index.html) ── */
footer {
  background: var(--charcoal);
  padding: 28px 40px;
  text-align: center;
}

.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  border-radius: 3px;
  opacity: 0.92;
}

footer p {
  font-size: 0.8125rem;
  color: var(--stone);
}

/* Build credit. Deliberately one notch quieter than the copyright it sits
   under — legible to anyone who looks for it, invisible to anyone who
   doesn't. Hover brings it up to full strength. */
.footer-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--stone);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-credit:hover { opacity: 1; }

.footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .quote-header { padding: 48px 20px 44px; }
  .quote-main   { padding: 32px 20px 56px; }
  .form-card    { padding: 28px 20px; }
  footer        { padding: 20px; }
}

@media (max-width: 640px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Stack phone and email: side-by-side fields are too narrow to
     read one-handed on a small screen. */
  .field-pair { grid-template-columns: 1fr; gap: 26px; }
}
