/* Fresh Dental Solutions — MORPHIC LAYER
 *
 * Styling for the AI-first, intent-driven layout. The plug decides order and
 * emphasis; these rules give those decisions smooth, legible expression.
 */

/* The root is a flex column so re-ranking via `order` animates in place. */
.morphic-root {
  display: flex;
  flex-direction: column;
}

/* Each section is a stable band; emphasis changes its weight, not its identity. */
.morphic-section {
  display: block;
  padding: 4rem 0;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease, padding 0.3s ease, background-color 0.3s ease;
}

/* Featured: the thing the user most likely wants — given room and light. */
.morphic-section.is-featured {
  background: linear-gradient(180deg, rgba(0, 168, 204, 0.06), rgba(0, 204, 153, 0.03));
}

/* Muted: still available, visibly de-prioritized. */
.morphic-section.is-muted {
  opacity: 0.72;
  padding: 2.25rem 0;
}
.morphic-section.is-muted:hover {
  opacity: 1;
}

/* Entrance for freshly composed sections. */
@keyframes morphIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.morphic-section { animation: morphIn 0.45s ease both; }

/* Hero rendered inside the morphic layer (reuses site hero look). */
.morph-hero {
  padding: 0;
}

/* Statement node (e.g. cost transparency) — compact, centered callout. */
.morph-statement {
  max-width: 720px;
  margin: 0 auto;
}
.morph-statement h2 { margin-bottom: 0.75rem; }

/* --- Plug status + "save my version" control ------------------------------ */
.fresh-morph-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  color: var(--text-light);
  z-index: 900;
}
.fresh-morph-bar .plug-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.2);
}
.fresh-morph-bar .plug-intent { font-weight: 600; color: var(--text-dark); }
.fresh-morph-bar button {
  border: none;
  background: var(--primary-color);
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.fresh-morph-bar button:hover { background: var(--secondary-color); }
.fresh-morph-bar button.ghost { background: transparent; color: var(--text-light); }
.fresh-morph-bar button.ghost:hover { color: var(--text-dark); }

@media (max-width: 600px) {
  .fresh-morph-bar { width: calc(100% - 2rem); justify-content: space-between; }
}

/* Service sections (services page) */
.service-section { margin-bottom: 3rem; }
.service-section:last-child { margin-bottom: 0; }

/* Contact info + appointment form (contact page) */
.contact-info-grid { display: grid; gap: 0.5rem; font-size: 1.05rem; }
.contact-info-grid a { color: var(--primary-color); text-decoration: none; }
.contact-form { max-width: 640px; margin: 0 auto; display: grid; gap: 1rem; }
.contact-form .form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: var(--border-radius);
  font: inherit;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary-color); }
.contact-form textarea { min-height: 110px; resize: vertical; }

/* No-JS / no-plug fallback: the bones still read as plain content. */
.morphic-root:empty::after {
  content: 'Loading your experience…';
  display: block;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}
