/* =========================================================================
   FourSquare Auctions - styles
   Design system: dark, Inter, indigo accent, 1200px container, 12px radius
   ========================================================================= */

:root {
  --bg-primary: #090A0F;
  --bg-secondary: #131622;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --border: #1E293B;
  --contact-bg: #1d264f;

  --container: 1200px;
  --radius: 12px;
  --section-pad: 80px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------- Reset ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------------- Utilities ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.eyebrow-light { color: #c7d2fe; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(248, 250, 252, .35);
}
.btn-outline:hover { border-color: var(--text-primary); color: var(--text-primary); }

.btn-block { width: 100%; }

.btn-call svg { width: 20px; height: 20px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 44px;
  width: auto;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 4px 8px;
}
.brand-fallback { font-weight: 700; font-size: 1.15rem; color: var(--text-primary); }

.site-nav { display: flex; align-items: center; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 8px;
}
.nav-list a:hover { color: var(--text-primary); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text-primary);
  transform: translateX(-50%);
}
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('../../img/4SquareAuctionHomeHeader.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 15, .78) 0%, rgba(9, 10, 15, .70) 55%, rgba(9, 10, 15, .92) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------- Sections ---------------- */
.section {
  padding-block: var(--section-pad);
}
.section-alt { background: var(--bg-secondary); }

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-cta { margin-top: 2.5rem; }

/* ---------------- Card grid ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.section-alt .card { background: var(--bg-primary); }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); margin: 0; }

.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(99, 102, 241, .12);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }

/* ---------------- Check list ---------------- */
.check-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, .15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.license-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--bg-primary);
  display: inline-block;
}
.license-block p { margin: .25rem 0; color: var(--text-muted); }
.license-block strong { color: var(--text-primary); }

/* ---------------- Contact section ---------------- */
.section-contact {
  position: relative;
  background: var(--contact-bg);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 38, 79, .55), rgba(9, 10, 15, .75)),
    url('../../img/00443fca-mask-group-1.png') center / cover no-repeat;
  opacity: .5;
  mix-blend-mode: screen;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-copy p { color: #cbd5e1; }
.contact-copy .btn-call { margin: .5rem 0 1.5rem; }

.contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(248, 250, 252, .15);
  padding-top: 14px;
}
.contact-facts strong {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #a5b4fc;
}
.contact-facts span { color: var(--text-primary); font-size: 1.05rem; }

/* ---------------- Form ---------------- */
.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-primary);
}
.contact-form label span { color: var(--accent); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font: inherit;
  font-size: .95rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form .btn-block { margin-top: 4px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 14px 0 0;
  font-size: .92rem;
  min-height: 1.2em;
}
.form-status.is-pending { color: var(--text-muted); }
.form-status.is-success { color: #4ade80; }
.form-status.is-error { color: #f87171; }

.form-fineprint {
  margin: 14px 0 0;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer p { color: var(--text-muted); margin: .3rem 0; font-size: .92rem; }
.footer-brand { font-weight: 700; font-size: 1.15rem; color: var(--text-primary) !important; margin-bottom: 0 !important; }
.footer-tagline { color: var(--accent) !important; font-size: .9rem !important; margin-top: 2px !important; }
.site-footer h3 { font-size: .95rem; margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}
.footer-bottom p { font-size: .82rem; margin: 0; }

/* ---------------- Scroll to top ---------------- */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
  z-index: 90;
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); }
.scroll-top svg { width: 22px; height: 22px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --section-pad: 40px; }

  .nav-toggle { display: block; }
  .site-nav { position: static; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 14px; }
  .nav-cta { text-align: center; }

  .hero { min-height: 0; padding: 90px 0; }
  .hero-actions .btn { width: 100%; }

  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 24px; }
}
