/* BinturoSoft — base styles. No external fonts/deps: system font stack for max speed & minimal attack surface. */

:root {
  --bg: #0A0C10;
  --bg-elevated: #12151B;
  --surface: #171B22;
  --border: #242933;
  --text: #F2F1ED;
  --text-muted: #A8ADB8;
  --accent: #D4AF66;
  --accent-hover: #E4C27E;
  --accent-ink: #16130B;
  --radius: 14px;
  --max-width: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Scrollbar — thin, transparent at rest, revealed while scrolling
   (html.is-scrolling, toggled in main.js) or on direct hover. */
html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
html.is-scrolling {
  scrollbar-color: var(--border) transparent;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}
html.is-scrolling::-webkit-scrollbar-thumb {
  background-color: var(--border);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent) !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

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

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.05rem; }
.brand-mark { height: 24px; width: auto; }
.brand-name strong { color: var(--accent); font-weight: 700; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.primary-nav a:not(.btn) { color: var(--text-muted); font-size: 0.95rem; transition: color 0.15s ease; }
.primary-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; background: var(--text); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  /* .hero has no padding-block of its own (unlike other sections), so
     it needs just the header height here, not the shared formula. */
  scroll-margin-top: 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3rem, 4vw, 5rem);
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 0.9em; }
.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-mark { width: min(360px, 100%); height: auto; opacity: 0.92; filter: drop-shadow(0 20px 40px rgba(212, 175, 102, 0.08)); }

.trust-strip { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.trust-strip p { margin: 0; padding: 0.9rem 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Sections */
section {
  padding-block: clamp(3.5rem, 5vw, 6rem);
  /* Pulls the scroll stop past the section's own top padding, so the
     heading lands ~24px under the sticky header instead of a full
     padding-block below it. Stays in sync across breakpoints since it
     reuses the same clamp() as padding-block. */
  scroll-margin-top: max(0px, 96px - clamp(3.5rem, 5vw, 6rem));
}
.section-lead { max-width: 56ch; font-size: 1.05rem; margin-top: -0.5em; margin-bottom: 2.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card--flat { background: transparent; padding: 0; border: none; }
.card p:last-child { margin-bottom: 0; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 102, 0.12);
  color: var(--accent);
  margin-bottom: 1rem;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.why-us { background: var(--bg-elevated); border-block: 1px solid var(--border); }

/* Compliance */
.compliance-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.badge-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
}
.badge-list li::before { content: "✓"; color: var(--accent); margin-right: 0.6em; font-weight: 700; }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, var(--bg-elevated), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-banner-inner { display: flex; flex-direction: column; align-items: center; }
.cta-banner p { max-width: 46ch; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info dl { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-info dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.2em; }
.contact-info dd { margin: 0; font-weight: 500; }
.contact-info a:hover { color: var(--accent); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-status { min-height: 1.2em; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 0; }
.form-status[data-state="ok"] { color: #6fcf97; }
.form-status[data-state="error"] { color: #eb5757; }

.thank-you-main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}
.thank-you-main img { opacity: 0.9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-inner nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-inner nav a:hover { color: var(--text); }
.legal { font-size: 0.78rem; color: var(--text-muted); margin: 0; flex-basis: 100%; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-mark { width: min(260px, 70%); }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .compliance-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul li { border-bottom: 1px solid var(--border); }
  .primary-nav ul li a { display: block; padding: 0.9rem 0; }
  .primary-nav .btn-nav { margin-top: 1rem; align-self: flex-start; }
}

@media (max-width: 560px) {
  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .legal { text-align: center; }
}
