/* ══════════════════════════════════════════════════════════
   WONDERLOGICS — SHARED STYLESHEET
   Used by all pages. Page-specific styles in /css/<page>.css
═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg: #fafaf8;
  --bg-soft: #f1f0ee;
  --bg-tint: #f6f5f3;
  --ink: #0d0d12;
  --ink-soft: #2a2a32;
  --ink-mid: #5e5e6a;
  --ink-light: #91919e;
  --line: #e2e1de;
  --line-soft: #ecebe8;

  /* Brand accent — magenta */
  --accent: #a21caf;
  --accent-soft: #f5d0fe;
  --accent-deep: #701a75;
  --accent-bright: #c026d3; /* for use on dark backgrounds */

  /* Typography */
  --display: 'Newsreader', Georgia, serif;
  --body: 'Roboto', system-ui, sans-serif;
}

/* ──────────────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, section, .placeholder { flex: 1; }

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

a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────────────
   LAYOUT
─────────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ──────────────────────────────────────────────────
   IMAGE PLACEHOLDER (delete when real images go in)
─────────────────────────────────────────────────── */
.img-slot {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────
   NAV
─────────────────────────────────────────────────── */
nav {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
nav.scrolled { border-bottom-color: var(--line); }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 500; }
.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent); }

/* ──────────────────────────────────────────────────
   SECTION MARKERS / EYEBROWS
─────────────────────────────────────────────────── */
.section-marker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-marker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: 'opsz' 72;
  max-width: 22ch;
}
.section-title em { font-style: normal; font-weight: 600; color: var(--accent); }
.section-header { margin-bottom: 64px; max-width: 900px; }

/* ──────────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--ink);
  color: white;
  padding: 16px 28px;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  color: var(--ink);
  padding: 16px 28px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--ink); color: white; }

/* ──────────────────────────────────────────────────
   FINAL CTA SECTION (used on every page)
─────────────────────────────────────────────────── */
.cta {
  padding: 160px 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 48px;
  color: var(--ink);
  font-variation-settings: 'opsz' 72;
}
.cta h2 em { font-style: normal; font-weight: 600; color: var(--accent); }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────────── */
footer {
  font-family: var(--body);
  padding: 32px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-brand .logo { flex-shrink: 0; }
.footer-tag {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-mid);
  flex-shrink: 0;
}
.footer-bottom-right a {
  color: var(--ink-mid);
  transition: color 0.15s;
}
.footer-bottom-right a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ──────────────────────────────────────────────────
   CONTACT SECTION
─────────────────────────────────────────────────── */
.contact {
  padding: 60px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.contact-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 72;
}
.contact-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.contact-desc a {
  color: var(--accent);
  font-weight: 500;
}
.contact-desc a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-light); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form-wrap { position: relative; }
.fs-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  color: #166534;
  font-size: 16px;
  margin-bottom: 16px;
}
.fs-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 20px 24px;
  color: #991b1b;
  font-size: 16px;
  margin-bottom: 16px;
}
.fs-error a { color: #991b1b; text-decoration: underline; }
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────
   ANIMATIONS (shared)
─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────
   RESPONSIVE BASE
─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .cta { padding: 100px 0; }
}
