/* ====================================================
   that3dprinting.com — shared styles
   Used by index.html, print.html, terms.html, privacy.html
   ==================================================== */

:root {
  --blue: #1a6fc4;
  --blue-dark: #134f8c;
  --ink: #0f1b24;
  --paper: #f6f7f5;
  --line: #d8dde0;
  --accent: #0f1b24;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Brand ---------- */

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  text-transform: lowercase;
  text-decoration: none;
}

/* ---------- Social icons ---------- */

.social-rail {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
}

.social-rail a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-rail a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.social-rail svg {
  width: 18px;
  height: 18px;
}

/* ---------- Background grid pattern (used on blue panels) ---------- */

.grid-bg {
  position: relative;
  overflow: hidden;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(15, 27, 36, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn svg {
  flex-shrink: 0;
}

/* ---------- Generic state messages (loading / empty / error) ---------- */

.state-message {
  text-align: center;
  padding: 3.5rem 1rem;
  color: #8a9aa5;
  font-size: 0.95rem;
}

.state-message strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.state-message a {
  color: var(--blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  padding: 2.5rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  width: 100%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 320px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 14px 34px -16px rgba(15, 27, 36, 0.5);
  z-index: 100;
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  color: rgba(255,255,255,0.8);
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.6rem;
}

.cookie-banner button {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cookie-banner button:hover {
  opacity: 0.85;
}

.cookie-accept {
  background: var(--blue); 
  color: #fff;
  flex: 1;
}

.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25) !important;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* ---------- Floating mail button (mobile/tablet only) ---------- */

.float-mail {
  display: none;
}

@media (max-width: 768px) {
  .float-mail {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem;
    box-shadow: 0 14px 34px -16px rgba(15, 27, 36, 0.5);
    text-decoration: none;
  }

  .float-mail svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .float-mail .float-mail-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.2rem;
  }

  .float-mail .float-mail-close:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
  }

  .float-mail .float-mail-close svg {
    width: 12px;
    height: 12px;
  }
}