/* Third Dimension Technology - site styles */

:root {
  --ink: #0e0c2c;        /* logo navy */
  --ink-soft: #3d3c56;
  --paper: #f5f5f6;
  --tint: #e2e3e5;       /* logo mockup grey */
  --line: #cfd0d6;
  --accent: #3a3fd4;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-small { padding: 9px 20px; }
.btn[disabled] { opacity: .6; cursor: default; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { background: var(--tint); border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px;
  padding-top: 96px; padding-bottom: 96px;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(340px, 100%); aspect-ratio: 1; color: var(--ink); filter: drop-shadow(-14px 18px 10px rgba(14, 12, 44, .16)); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .eyebrow { color: #a9a9c4; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card p { color: var(--ink-soft); margin-top: 10px; }

/* Approach */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .28); padding-top: 22px; }
.step-num { display: block; font-size: 0.85rem; letter-spacing: 0.2em; color: #a9a9c4; margin-bottom: 12px; }
.steps p { color: #cfcfe0; margin-top: 10px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 1.1rem; }
.about-copy p + p { margin-top: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-intro p:last-child { color: var(--ink-soft); margin-top: 18px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 63, 212, .18); background: var(--white);
}
.field .invalid { border-color: #b3261e; }

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

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.form-status { font-weight: 500; }
.form-status.ok { color: #1b6b3a; }
.form-status.err { color: #b3261e; }

.contact-intro .contact-email { margin-top: 26px; color: var(--ink); }
.contact-email a { font-weight: 600; overflow-wrap: anywhere; }
.form-note { margin-top: 20px; font-size: 0.85rem; color: var(--ink-soft); }

/* Consent checkboxes */
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: 0.95rem; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); }
.check input.invalid { outline: 2px solid #b3261e; outline-offset: 2px; }

/* Legal and opt-in pages */
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal .updated { color: var(--ink-soft); margin-top: 10px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal p, .legal ul { margin-top: 14px; color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
.legal .contact-form { margin-top: 32px; }
.legal .contact-form p, .legal .contact-form .check { color: var(--ink); margin-top: 0; }
.legal .contact-form .form-note { margin-top: 20px; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.brand-footer { color: var(--white); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.95rem; }
.footer-links a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; }
.copyright { color: #a9a9c4; font-size: 0.9rem; flex-basis: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-mark { width: 150px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 24px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .cards, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .contact-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
