/* =========================
   Murphy Labs – Global Styles
   ========================= */

/* Brand tokens */
:root {
  --brand: #2979ff;
  --brand-hover: #1c5fbf;
  --text-on-brand: #fff;
  --shadow: rgba(0,0,0,0.2);
  --radius: 8px;
}

/* Top bar container (logo left, back button right) */
.top-bar {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* allow wrap on small screens */
}

/* Buttons (shared styles) */
.back-btn,
.back-to-top {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--brand);
  color: var(--text-on-brand);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px var(--shadow);
  transition: background-color 0.2s ease, opacity 0.3s ease;
  cursor: pointer;
}

.back-btn:hover,
.back-to-top:hover {
  background-color: var(--brand-hover);
}

.back-btn:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid rgba(41,121,255,0.5);
  outline-offset: 2px;
}

/* Back to Top (positioning + sizing tweaks) */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;        /* default hidden */
  padding: 10px 14px;   /* slightly tighter than .back-btn */
  font-size: 0.9rem;
}
.back-to-top.show {      /* toggle this class via JS when scrolled */
  display: inline-block;
}

/* Logo sizing */
.site-logo {
  max-height: 100px; /* cap size on large screens */
  height: auto;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .site-logo { max-height: 72px; }
}

/* ===== Trademark helpers ===== */
.tm {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.08em;
}

/* Auto-append ™ to any element with .has-tm (text marks) */
.has-tm::after {
  content: "™";
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.08em;
}

/* For logos (images/SVG): wrap the logo and overlay ™ in the corner */
.logo-tm {
  position: relative;
  display: inline-block;
}
.logo-tm::after {
  content: "™";
  position: absolute;
  top: -0.4em;
  right: -0.3em;
  font-size: 0.65em;
}

/* Footer/legal line */
.legal {
  color: #666;
  font-style: italic;
  font-size: 0.95em;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .back-btn,
  .back-to-top { transition: none; }
}

/* Regular disclaimer under cards */
.disclaimer {
  font-size: 0.7rem;
  color: #777;
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}

/* Info card styling */
.info-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 16px;
  grid-column: span 1; /* same width as other cards */
}

.info-card .cnc-title {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

.about-card {
  background: #f0f7ff;        /* soft blue */
  border: 1px solid #c9e0ff;  /* light blue border */
}
.about-card .cnc-title {
  font-weight: bold;
  color: #224466;             /* darker blue for contrast */
}

.gallery {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5em 0;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
}

.tagline-banner {
  margin: 2em 0;
  padding: 1em 1.5em;
  background: #fef7e0;
  border-left: 6px solid #f4b400; /* Google yellow vibe */
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.tagline-banner p {
  margin: 0;
}


.did-i-design-banner {
  margin: 2em 0;
  padding: 1.5em;
  background: #eef6ff;
  border-left: 6px solid #4285f4; /* Google blue vibe */
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-align: center;
}



.design-footer {
  margin-top: 1em;
  font-size: 0.9rem;
  color: #666;
  text-align: right;
  font-style: italic;
}

.did-i-design-banner {
  margin: 2em 0;
  padding: 1.5em;
  background: #eef6ff;
  border-left: 6px solid #4285f4;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  text-align: center;
}
.did-i-design-banner h2 { margin: 0 0 0.5em; font-size: 1.6rem; color: #222; }
.did-i-design-banner p { margin: 0; font-size: 1rem; color: #444; }

.did-it-make .gallery {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5em 0;
}
.did-it-make .gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.08);
}

.did-it-make {
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* External links only: add ↗ icon */
a[target="_blank"][href^="http"]::after {
  content: " ↗";
  font-size: 0.85em;
  color: #666;
}

/* Back to Projects link under each video */
.video .back-link { margin-top: 8px; }
.video .back-link a {
  color: #007acc;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
}
.video .back-link a:hover { text-decoration: underline; }
