/* ============================================
   Business Information Design, Inc.
   Custom CSS — No frameworks, no libraries
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500&display=swap');

/* --- Reset --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{min-height:100vh;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale padding-bottom: 2.25rem; }
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit;border:none;background:none}
ul,ol{list-style:none}

/* --- Tokens --- */
:root {
  --bg: #FAFAFA;
  --bg-alt: #F0F0F0;
  --bg-card: #FFFFFF;
  --bg-dark: #141416;
  --text: #141416;
  --text-muted: #52525B;
  --text-faint: #8A8A96;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #141416;
  --accent-light: #F0F0F0;
  --border: #D4D4D8;
  --border-light: #E4E4E7;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

html.dark {
  --bg: #0A0A0C;
  --bg-alt: #141416;
  --bg-card: #1C1C1E;
  --bg-dark: #060608;
  --text: #E4E4E7;
  --text-muted: #A1A1AA;
  --text-faint: #71717A;
  --primary: #60A5FA;
  --primary-hover: #93C5FD;
  --primary-light: #1E293B;
  --accent: #E4E4E7;
  --accent-light: #1C1C1E;
  --border: #2E2E32;
  --border-light: #232326;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  color: var(--text-muted);
}

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

.section {
  padding-block: clamp(4rem, 6vw, 7rem);
}

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

/* --- Section divider --- */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  max-width: var(--max-w);
  margin-inline: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg-alt);
}

/* Focus ring */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.25s;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

html.dark .site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  color: var(--primary) !important;
  border: 1px solid var(--primary);
  padding: 0.375rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff !important;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.theme-toggle:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    background: var(--bg);
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border-light);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* --- Hero --- */
.hero {
  padding-block: clamp(5rem, 10vw, 10rem) clamp(4rem, 8vw, 8rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border-light) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

html.dark .hero::before {
  opacity: 0.2;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-light);
}

.service-card h3 {
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Approach / Process --- */
.approach-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 640px;
}

.approach-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--primary);
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-body h3 {
  margin-bottom: 0.375rem;
}

.step-body p {
  font-size: 0.9375rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--bg-alt);
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* --- About page --- */
.about-prose {
  max-width: 680px;
}

.about-prose h1 {
  margin-bottom: 2rem;
}

.about-prose p {
  margin-bottom: 1.25rem;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.values {
  margin-top: 3rem;
}

.values h2 {
  margin-bottom: 2.5rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
}

.value-item {
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-light);
}

.value-item h3 {
  margin-bottom: 0.375rem;
}

.value-item p {
  font-size: 0.9375rem;
}

/* --- Contact page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info h1 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.15s;
}

.contact-email:hover {
  color: var(--primary-hover);
}

.contact-email svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

html.dark .form-group input:focus,
html.dark .form-group select:focus,
html.dark .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2352525B' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  min-height: 1.5rem;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: #A1A1AA;
  padding-block: 3rem;
  padding-bottom: calc(3rem + 48px); /* extra for disclaimer bar */
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-credit {
  font-size: 0.85rem;
  color: #71717A;
}

.footer-credit a {
  color: #A1A1AA;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.footer-credit a:hover {
  color: #E4E4E7;
}

/* Disclaimer bar */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 0.625rem var(--gutter);
  text-align: center;
  font-size: 0.75rem;
  color: #71717A;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Turnstile --- */
.cf-turnstile {
  margin-bottom: 1rem;
}

/* --- Subtle animations (motion-safe) --- */
@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: grid-drift 20s linear infinite;
  }
  @keyframes grid-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 32px 32px; }
  }

  .section-divider {
    animation: divider-draw 0.8s ease-out both;
  }
  @keyframes divider-draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* --- Print --- */
@media print {
  .site-header, .disclaimer-bar, .theme-toggle, .hamburger { display: none; }
  .site-footer { padding-bottom: 3rem; }
  body { background: #fff; color: #000; }
}

/* Service card hover accent */
.service-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Step number pop on reveal */
.approach-step .step-number {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease;
}
.approach-step.visible .step-number {
  animation: step-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes step-pop {
  0%   { transform: scale(0.7); opacity: 0.5; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
  .approach-step.visible .step-number { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
