/* McDent Removal - single page holding site.
   No external requests: system fonts, local images only. */

:root {
  --ink: #f6f6f7;
  --muted: #b9bcc4;
  --ground: #121214;
  --cycle: 18s;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ---------- background slideshow ---------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ground);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade var(--cycle) infinite;
  will-change: opacity, transform;
}

.slide-1 { background-image: url("hero-1.webp"); animation-delay: 0s; }
.slide-2 { background-image: url("hero-2.webp"); animation-delay: 6s; }
.slide-3 { background-image: url("hero-3.webp"); animation-delay: 12s; }

@keyframes fade {
  0%     { opacity: 0; transform: scale(1.00); }
  8.33%  { opacity: 1; }
  33.33% { opacity: 1; }
  41.66% { opacity: 0; transform: scale(1.06); }
  100%   { opacity: 0; transform: scale(1.06); }
}

/* Darken the photography so the text keeps its contrast ratio. */
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.50), rgba(0,0,0,.12) 42%, rgba(0,0,0,.62)),
    radial-gradient(ellipse at center, rgba(0,0,0,.08) 0%, rgba(0,0,0,.52) 100%);
}

/* ---------- content ---------- */

.card {
  /* Darkens only behind the text. The scrim above stays light so the
     photography still reads at the edges of the frame. */
  background: radial-gradient(ellipse 62% 58% at 50% 46%,
              rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 55%, rgba(0,0,0,0) 78%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.logo {
  width: min(230px, 62vw);
  height: auto;
  margin-bottom: .5rem;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}

.tagline {
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 3.6vw, 1.3rem);
  font-weight: 500;
  color: #e4e6ea;
  letter-spacing: .12em;
  text-shadow: 0 1px 10px rgba(0,0,0,.8);
  text-transform: uppercase;
}

/* Phone is the primary action: this business runs on calls. */
.tel {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #101013;
  font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  transition: transform .15s ease, background-color .15s ease;
}

.tel:hover,
.tel:focus-visible { background: #f2f3f5; transform: translateY(-2px); }
.tel:active { transform: translateY(0); }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.email {
  margin-top: 1.1rem;
  color: #dcdee3;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
  font-size: clamp(.9rem, 3.4vw, 1.05rem);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: 2px;
  word-break: break-word;
}

.email:hover,
.email:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

.foot {
  padding: 1.25rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.foot p { margin: 0; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slide-1 { opacity: 1; }
}
