/* ===== PERIMETER SHARED STYLES ===== */

:root {
  --bone: #efe9df;
  --bone-light: #f5f0e7;
  --bone-dark: #e3dccd;
  --ink: #1a1a18;
  --ink-soft: #2d2c28;
  --paper: #faf6ee;
  --line: #2d2c28;
  --muted: #6b6450;
  --rust: #8a3d20;
  --rust-soft: #b85838;
  --success: #4a6741;
  --warn: #a06632;
  --error: #b04030;
  --accent: #8a3d20;
  --accent-soft: #b85838;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

.display { font-family: 'Fraunces', serif; font-weight: 400; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
em { font-style: italic; color: var(--accent); font-weight: 400; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(239, 233, 223, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(45, 44, 40, 0.08);
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-family: 'Fraunces', serif; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
/* Logo mark: radar rings around a rust-accent center dot, framed by four
   bracket corners. The brackets give it the perimeter / surveyor-mark feel;
   the radar rings suggest active scanning. A subtle sweep animation runs
   continuously (disabled if the user prefers reduced motion). */
.logo-mark {
  width: 26px;
  height: 26px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2026%2026%22%20fill=%22none%22%3E%3Ccircle%20cx=%2213%22%20cy=%2213%22%20r=%226%22%20stroke=%22%231a1a18%22%20stroke-width=%220.9%22%20opacity=%220.18%22/%3E%3Ccircle%20cx=%2213%22%20cy=%2213%22%20r=%223.5%22%20stroke=%22%231a1a18%22%20stroke-width=%220.9%22%20opacity=%220.35%22/%3E%3Ccircle%20cx=%2213%22%20cy=%2213%22%20r=%221.5%22%20fill=%22%238a3d20%22/%3E%3Cpath%20d=%22M%201%207%20L%201%201%20L%207%201%22%20stroke=%22%231a1a18%22%20stroke-width=%221.75%22%20fill=%22none%22/%3E%3Cpath%20d=%22M%2019%201%20L%2025%201%20L%2025%207%22%20stroke=%22%231a1a18%22%20stroke-width=%221.75%22%20fill=%22none%22/%3E%3Cpath%20d=%22M%201%2019%20L%201%2025%20L%207%2025%22%20stroke=%22%231a1a18%22%20stroke-width=%221.75%22%20fill=%22none%22/%3E%3Cpath%20d=%22M%2019%2025%20L%2025%2025%20L%2025%2019%22%20stroke=%22%231a1a18%22%20stroke-width=%221.75%22%20fill=%22none%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
/* Radar sweep: a thin rust line rotating from the center */
.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, transparent 100%);
  transform-origin: 0 50%;
  animation: radar-sweep 4s linear infinite;
  opacity: 0.7;
}
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark::after { animation: none; opacity: 0; }
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { background: var(--ink); color: var(--bone) !important; padding: 0.7rem 1.4rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500; }
.nav-cta:hover { background: var(--accent); opacity: 1; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--ink); color: var(--bone);
  padding: 1rem 1.9rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.6rem;
  transition: all 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }
.btn-secondary {
  color: var(--ink); padding: 1rem 0;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--ink);
  background: transparent; border-top: none; border-left: none; border-right: none;
  cursor: pointer; font-family: inherit;
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  padding: 0.8rem 1.4rem; border: 1px solid var(--line);
  border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 6rem 3rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.5rem; }

/* ===== SECTION LABEL ===== */
.section-label {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
.section-label.center { justify-content: center; }

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}

/* ===== FOOTER ===== */
footer {
  padding: 4rem 3rem 2rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; max-width: 280px; }
.footer-col-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.footer-col a { display: block; color: var(--ink); text-decoration: none; font-size: 0.92rem; padding: 0.35rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted);
}

/* ===== FORM ELEMENTS ===== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  color: var(--ink);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bone-light);
}
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.3rem;
}
.form-help {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.15s;
}
.checkbox-field input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.checkbox-field input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  transform: rotate(45deg);
}
.checkbox-field-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ===== ADDRESS AUTOCOMPLETE ===== */
.address-autocomplete {
  position: relative;
}
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 12px 32px -8px rgba(45, 44, 40, 0.15);
}
.address-suggestions.active { display: block; }
.address-suggestion {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(45, 44, 40, 0.06);
  transition: background 0.15s;
}
.address-suggestion:last-child { border-bottom: none; }
.address-suggestion:hover, .address-suggestion.highlighted { background: var(--bone-light); }
.address-suggestion-main { color: var(--ink); }
.address-suggestion-sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .breadcrumb { padding: 5rem 1.5rem 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
