/* Morrison Dental — shared styles for every page.
   Layers: base (reset, palette, drifting tooth background) -> the landing
   page (.home) -> content pages such as Privacy Policy and Terms (.page). */

/* ----- Base ----- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1f3a5f;
  background-color: #f7fafc;
  min-height: 100vh;
}

/* Drifting tooth pattern, fixed at the edges so it stays put while content
   scrolls. Shared by every page. */
body::before {
  content: "";
  position: fixed;
  inset: -160px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%231f3a5f' stroke-opacity='0.08' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'><path d='M42 48 C 42 38 48 34 54 36 C 57 37 58 40 60 40 C 62 40 63 37 66 36 C 72 34 78 38 78 48 C 78 54 77 58 75 62 C 73 66 72 74 70 82 C 69 86 66 87 64 83 C 62 78 61 72 60 72 C 59 72 58 78 56 83 C 54 87 51 86 50 82 C 48 74 47 66 45 62 C 43 58 42 54 42 48 Z'/><path d='M50 42 L 70 42'/></g></svg>");
  background-size: 160px 160px;
  will-change: transform;
  animation: drift 90s linear infinite;
  z-index: -1;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(160px, 160px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ----- Landing page (.home) ----- */

body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a7393;
  margin: 0;
}

.doctors {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
}

.hours {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 18rem;
  color: #5a7393;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.hours dt {
  font-weight: 500;
  color: #1f3a5f;
}

.hours dd {
  margin: 0;
}

.hiring {
  margin-top: 3rem;
  max-width: 32rem;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.5;
  color: #5a7393;
}

.hiring a {
  color: #1f3a5f;
}

.contact {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  line-height: 1.6;
  color: #5a7393;
}

.contact a {
  color: #1f3a5f;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.legal {
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.legal a {
  color: #5a7393;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal-sep {
  margin: 0 0.4rem;
  color: #9bb0c9;
}

/* ----- Content pages (.page) ----- */

body.page {
  padding: clamp(1rem, 4vw, 3rem);
}

.card {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(31, 58, 95, 0.12);
  line-height: 1.6;
}

.card h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

.card h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  margin: 2.25rem 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
}

.card ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.card li {
  margin-bottom: 0.4rem;
}

.card a {
  color: #1f3a5f;
}

.effective-date {
  color: #5a7393;
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

.back-link {
  margin: 2.5rem 0 0;
  font-size: 0.95rem;
}
