/* Shared components for the public storefront. Layout that's unique to a page
   stays inline in that page; the patterns that repeat across pages live here. */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .tile {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.brand .word {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.02em;
}
.brand .word b { color: var(--accent); font-weight: 700; }

.topnav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.topnav a { color: var(--text); transition: color 0.15s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); }

.phone-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink);
  color: #fff; padding: 11px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.phone-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 11px; background: var(--card); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; border-bottom: 1px solid var(--border); background: var(--card); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 8px 0 16px; }
.mobile-menu a {
  padding: 13px 4px; font-size: 16px; font-weight: 600; color: var(--ink);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }

@media (max-width: 900px) {
  .topnav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Narrow phones (≤374px): the full "0405 575 911" pill + hamburger overflow the
   bar, clipping the menu button. Collapse the phone CTA to an icon-only square
   that mirrors the hamburger — one-tap-to-call is preserved (the full number
   also lives in the open menu). */
@media (max-width: 374px) {
  .phone-btn {
    width: 42px; height: 42px; padding: 0; gap: 0;
    justify-content: center; border-radius: 11px;
    font-size: 0; /* drops the number text node */
  }
  .phone-btn .dot { display: none; }
  .phone-btn::before {
    content: ""; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--phone-glyph) center / contain no-repeat;
            mask: var(--phone-glyph) center / contain no-repeat;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: var(--r-input); padding: 14px 22px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; font-weight: 700; }
.btn-accent:hover { box-shadow: 0 8px 20px rgba(255, 106, 43, 0.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(28, 28, 30, 0.22); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- form fields ---------- */
.field {
  width: 100%; border: 1px solid var(--border); background: var(--bg);
  border-radius: 11px; padding: 13px 15px; font-family: inherit; font-size: 15px;
  color: var(--ink); outline: none; transition: border-color 0.15s ease;
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--accent); }
.field.bad { border-color: var(--error-border); background: var(--error-bg); }
textarea.field { resize: vertical; min-height: 92px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.field-error { font-size: 12px; color: var(--error); margin-top: 5px; font-weight: 500; }
/* Honeypot: off-screen (not display:none, which some bots skip) — never shown to humans. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.site-footer .bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 36px 0;
}
.site-footer .word { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.site-footer .word b { color: var(--accent); }
.site-footer .meta { font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--text); }
.site-footer .links a:hover { color: var(--ink); }

/* ---------- success state ---------- */
.success-card { text-align: center; padding: 28px 8px; }
.success-card .check {
  width: 60px; height: 60px; border-radius: 50%; background: var(--success-bg);
  color: var(--success); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.success-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 23px; }
.success-card p { font-size: 14px; color: var(--text); margin-top: 8px; line-height: 1.5; }

/* shared chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-strong); background: var(--card); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: var(--r-chip);
}
.chip .tick { color: var(--success); }
