/* ValKred Marketing Site Stylesheet — Strictly adhering to Veskyra Marketing Sites Build Guide */
:root {
  color-scheme: light dark;
  --ink: #171C26;
  --primary: #16324F;         /* ValKred Station Navy / Deep Teal */
  --accent: #B8863B;          /* ValKred Warm Amber Period & Accent */
  --accent-ink: #8F6613;      /* Darkened Amber for High-Contrast Text */
  --paper: #F7F5F0;           /* Linen Page Background */
  --surface: #FFFFFF;         /* Crisp White Card Surface */
  --muted: #5B6472;           /* Neutral Secondary Text */
  --border: #E5E1D8;          /* Warm Subtle Border */
  --nav-bg: rgba(247, 245, 240, 0.92);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEBE5;
    --primary: #10141C;
    --accent: #D9A53B;
    --accent-ink: #E8C173;
    --paper: #14181F;
    --surface: #1D222B;
    --muted: #A6ACB8;
    --border: #2B303B;
    --nav-bg: rgba(20, 24, 31, 0.92);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  line-height: 1.1;
  margin: 0;
}

.period { color: var(--accent); }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

section {
  padding: clamp(56px, 9vw, 112px) 0;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 14px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover {
  color: var(--accent-ink);
}
.nav-links a.active {
  color: var(--accent-ink);
  font-weight: 700;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-mobile-toggle {
  display: block;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}
@media (min-width: 768px) {
  .nav-mobile-toggle { display: none; }
}

#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #171C26;
}
.btn-primary:hover {
  filter: brightness(0.92);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #FFFFFF;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero */
.hero {
  padding-top: clamp(64px, 10vw, 120px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 24px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Built For You Strip */
.empathy-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.empathy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .empathy-grid { grid-template-columns: repeat(3, 1fr); }
}
.empathy-item {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.empathy-item strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card ul {
  padding-left: 18px;
  margin: 16px 0;
  color: var(--muted);
}
.card ul li {
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  max-width: 24ch;
}
.section-head {
  max-width: 680px;
}
p.body-muted {
  color: var(--muted);
}

/* FAQ Details */
.faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.faq-item summary {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Final CTA Band */
.cta-band {
  background: var(--primary);
  color: #E9E7E0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 {
  color: #FFFFFF;
}
.cta-band p {
  color: #B7B4AC;
  max-width: 60ch;
  margin-top: 16px;
}

/* Sub-page Hero */
.page-hero {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: 8px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.page-hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 18px;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 860px) {
  .contact-wrap { grid-template-columns: 1.1fr 0.9fr; }
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.contact-card .big-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-block;
  margin: 8px 0 20px;
}

/* Footer */
footer {
  background: var(--primary);
  color: #E9E7E0;
  padding: 56px 0 32px;
}
footer .wordmark {
  color: #FFFFFF;
}
footer a {
  color: #E9E7E0;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-family-strip {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #B7B4AC;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #B7B4AC;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom a {
  color: #B7B4AC;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
