/* ═══════════════════════════════════════════════════
   SYNTIRION — site.css
   Two-page site: Home + Contact (+ Privacy, Success, Error)
═══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --dome-blue:   #003DA5;
  --sandy:       #C4A670;
  --slate:       #1E293B;
  --slate-light: #475569;
  --white:       #FFFFFF;
  --border-light:#EDECE8;
  --error:       #DC2626;
  --font-display:'Cinzel', serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ───────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Page container ─────────────────────────────── */
.page {
  flex: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}

/* ── Hero (all pages) ───────────────────────────── */
.hero { text-align: center; padding-top: 24px; margin-bottom: 64px; }
.hero .eyebrow { color: var(--sandy); margin-bottom: 18px; }

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--dome-blue);
  line-height: 1.1;
  margin: 0;
  text-decoration: none;
  display: inline-block;
}
a.wordmark:hover { color: var(--sandy); }

.hero-rule { width: 56px; height: 1px; background: var(--sandy); margin: 26px auto 22px; }

.derivation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--slate);
  margin-bottom: 6px;
}

.derivation-meaning {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--slate-light);
  letter-spacing: 0.01em;
}

/* ── Eyebrow ────────────────────────────────────── */
.eyebrow {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sandy);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Page heading (interior pages) ──────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--dome-blue);
  line-height: 1.3;
  margin-bottom: 24px;
}
h1.page-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 40px; }

/* ── Body paragraphs ────────────────────────────── */
.intro {
  font-size: 1.15rem;
  color: var(--slate-light);
  line-height: 1.85;
  margin-bottom: 20px;
}
.page-intro {
  font-size: 0.96rem;
  color: var(--slate-light);
  line-height: 1.85;
  margin-bottom: 16px;
}

/* ── Sandy divider ──────────────────────────────── */
.divider { width: 40px; height: 1px; background: var(--sandy); margin: 56px 0 48px; }

/* ── Section labels (homepage section headings) ─── */
.section-label {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sandy);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-block;
}

/* ── Category headings (homepage technologies) ──── */
.category-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dome-blue);
  margin-bottom: 16px;
  display: block;
}

/* ── Engage / How-we-work grid ──────────────────── */
.engage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

.engage-item { padding: 20px 0; border-top: 1px solid var(--border-light); }

.engage-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--sandy);
  line-height: 1;
  margin-bottom: 10px;
}

.engage-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dome-blue);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.engage-body {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.8;
}

/* ── AI callout ─────────────────────────────────── */
.ai-callout {
  background: #f5f3ee;
  border-left: 3px solid var(--dome-blue);
  padding: 28px 32px;
  margin: 40px 0 0;
}
.ai-callout-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dome-blue);
  margin-bottom: 14px;
}
.ai-callout p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.85;
  margin-bottom: 14px;
}
.ai-callout p:last-child { margin-bottom: 0; }

/* ── Privacy / legal page ───────────────────────── */
.section-label-sm {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--sandy);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dome-blue);
  margin-bottom: 14px;
  line-height: 1.3;
}
.section-body {
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-updated {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-bottom: 32px;
}
.legal-list { list-style: none; margin: 0 0 20px; }
.legal-list li {
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.85;
  padding-left: 16px;
  position: relative;
}
.legal-list li::before { content: '—'; position: absolute; left: 0; color: var(--sandy); }

/* ── Consultation CTA ───────────────────────────── */
.cta-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dome-blue);
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.cta-link:hover { border-color: var(--dome-blue); }

/* ── Return-home link (success / error / privacy) ─ */
.return-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--dome-blue);
  text-decoration: none;
}
.return-link:hover { color: var(--sandy); }

/* ── Contact form ───────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sandy);
}

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--slate);
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--slate-light);
  padding: 10px 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  resize: none;
  line-height: 1.6;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus { border-bottom-color: var(--dome-blue); }

input.input-error, textarea.input-error { border-bottom-color: var(--error); }

.field-error { font-size: 0.76rem; color: var(--error); font-weight: 400; }

.form-error-msg {
  font-size: 0.95rem;
  color: var(--error);
  font-weight: 500;
  line-height: 1.7;
  padding: 16px 20px;
  background: #FEF2F2;
  border-left: 3px solid var(--error);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.submit-note { font-size: 0.88rem; font-weight: 400; color: var(--slate); }

.submit-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dome-blue);
  background: transparent;
  border: 1px solid var(--dome-blue);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.submit-btn:hover { background: var(--dome-blue); color: var(--white); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Confirmation / error text ──────────────────── */
.success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dome-blue);
  margin-bottom: 12px;
}
.success-body {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--slate-light);
  line-height: 1.85;
}
.success-body a { color: var(--dome-blue); text-decoration: none; }
.success-body a:hover { color: var(--sandy); }

/* ── Honeypot field ─────────────────────────────── */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ── Footer ─────────────────────────────────────── */
footer { padding: 24px 32px; border-top: 1px solid var(--border-light); }

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-single { justify-content: center; text-align: center; }

.footer-copyright { font-size: 0.72rem; color: var(--slate-light); }

.footer-privacy { font-size: 0.72rem; color: var(--slate-light); text-decoration: none; }
.footer-privacy:hover { color: var(--dome-blue); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .page         { padding: 72px 20px 60px; }
  .hero         { margin-bottom: 48px; }
  .engage-grid  { grid-template-columns: 1fr; gap: 0; }
  .form-row     { grid-template-columns: 1fr; }
  .submit-row   { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
