/* ============================================================
   International Moving Calculator — brand system
   Single source of truth for palette, type, and page shell.
   Loaded by index.html, faq.html, privacy.html.
   ============================================================ */

:root {
  /* Brand — deep teal + sand. Deliberately distinct from the
     navy/red of the original client template. */
  --brand:      #0f5c57;
  --brand-800:  #0a423f;
  --brand-600:  #14726b;
  --brand-300:  #4c9d93;
  --brand-100:  #dcebe8;
  --brand-50:   #f0f7f5;

  --accent:     #e2a33c;
  --accent-600: #c9862a;
  --accent-700: #a8701f;
  --accent-100: #fbeed6;

  /* Neutrals */
  --ink:        #12211f;
  --body:       #34433f;
  --muted:      #66807a;
  --line:       #e2e9e6;
  --surface:    #ffffff;
  --surface-2:  #f5f8f7;

  --danger:     #b3261e;
  --danger-bg:  #fdf1f0;
  --danger-line:#f3c9c5;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(18,33,31,.06);
  --shadow-md: 0 1px 3px rgba(18,33,31,.07), 0 10px 28px rgba(18,33,31,.06);

  --radius: 14px;
}

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

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--surface);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

a { color: var(--brand-600); }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }
section { padding: 48px 0; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  border-bottom: 3px solid var(--accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* Logo lockup: SVG range-bar mark + stacked wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #fff;
  transition: opacity .2s ease-out;
}
.logo:hover { opacity: .85; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-top {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
}

.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(255,255,255,.4);
  transition: border-color .2s ease-out;
}
.header-link:hover { border-bottom-color: var(--accent); }

.trust-badges { display: flex; gap: 8px; align-items: center; }
.badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: var(--brand-50);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 52px 0 46px;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 43px);
  color: var(--ink);
  margin-bottom: 12px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(transparent 68%, var(--accent-100) 68%);
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 570px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 42px 38px;
  margin-bottom: 26px;
}
.step-header { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.card-title { font-size: 22px; margin-bottom: 0; }
.card-subtitle {
  color: var(--muted); font-size: 15px;
  margin-bottom: 26px; margin-left: 43px;
}

/* ── Forms ────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 7px;
}
.form-group select,
.form-group input,
.form-group textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366807a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(76,157,147,.18);
}
.form-group textarea { resize: vertical; min-height: 84px; }

.form-group.error select,
.form-group.error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179,38,30,.09);
}
.error-msg { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; }
.form-group.error .error-msg { display: block; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px; font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-800); border-color: var(--brand-800); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-secondary:hover { background: var(--brand-50); border-color: var(--brand-300); transform: translateY(-1px); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; }

/* ── Inline error banner ──────────────────────────────── */
.form-error {
  display: none;
  margin-top: 12px; padding: 12px 14px;
  border-radius: 9px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  font-size: 13.5px; line-height: 1.5;
}
.form-error.visible { display: block; }

/* Honeypot — off-canvas rather than display:none, which some bots detect. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 26px 0;
  font-size: 13px;
  border-top: 3px solid var(--accent);
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-disclaimer {
  max-width: 620px; margin: 12px auto 0;
  font-size: 11.5px; line-height: 1.55;
  color: rgba(255,255,255,.42);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 899px) {
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 22px; }
  .card-subtitle { margin-left: 0; }
  .site-header .container { justify-content: center; text-align: center; }
  .header-right { justify-content: center; }
  .step-header { gap: 10px; }
  .step-number { width: 27px; height: 27px; font-size: 13px; }
  .card-title { font-size: 19.5px; }
}
@media (max-width: 480px) {
  .card { padding: 24px 18px; }
  .logo-main { font-size: 18px; }
  .logo-top { font-size: 9.5px; letter-spacing: 1.8px; }
  .trust-badges { display: none; }
}
