/* PCM Dental Lab — styles.css */

:root {
  --navy: #1E4D6B;
  --navy-deep: #143A52;
  --orange: #F2A93B;
  --sand: #F4EFE6;
  --ink: #1B2430;
  --muted: #5B6672;
  --line: #E3E7EC;
  --gray-band: #F6F7F9;
  --render-bg: #3d3d3d;
  --wrap: 1140px;
  --pad-y: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.14;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.24rem; line-height: 1.3; }

p { margin: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--pad-y) 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

.lead { color: var(--muted); margin-top: 18px; }

.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--orange); color: var(--navy-deep); border-color: var(--orange); }
.btn-primary:hover { background: #e79d2a; border-color: #e79d2a; }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .28s ease, box-shadow .28s ease, color .28s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  padding: 2px;
  flex: none;
}
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-call {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: 11px 22px;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.header-call:hover { background: rgba(255,255,255,.26); }

.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 2px 18px rgba(20,58,82,.10);
}
.site-header.is-scrolled .brand { color: var(--navy); }
.site-header.is-scrolled .brand-logo { background: transparent; }
.site-header.is-scrolled .header-call {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.site-header.is-scrolled .header-call:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  animation: heroDrift 15s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,77,107,.70) 0%, rgba(30,77,107,.48) 55%, rgba(30,77,107,.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.hero-logo img { width: 104px; height: 104px; object-fit: contain; }
.hero-content .eyebrow { color: var(--orange); }
.hero h1 { max-width: 16ch; margin: 0 auto; text-shadow: 0 2px 24px rgba(20,58,82,.35); }
.hero-sub {
  margin: 20px auto 0;
  max-width: 48ch;
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-chevron {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: chevBob 2.4s ease-in-out infinite;
}
.hero-chevron svg { width: 22px; height: 22px; }
.hero-chevron:hover { background: rgba(255,255,255,.24); }

@keyframes chevBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}
/* On short viewports the chevron would sit on top of the montage bars — hide it. */
@media (max-height: 780px) {
  .hero-chevron { display: none; }
}

/* ---------- Hero montage caption ---------- */
.montage {
  margin: 30px auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.montage-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(20,58,82,.38);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.montage-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: montagePulse 1.8s ease-in-out infinite;
}
@keyframes montagePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.75); }
}
.montage-text {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  color: #fff;
  opacity: 1;
  transition: opacity .25s ease;
}
.montage-text.is-out { opacity: 0; transition: none; }
.montage-bars {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.montage-bar {
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.montage-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orange);
  transition: width .12s linear;
}

/* ---------- Ken Burns ---------- */
.kb-pan { animation: kbPan 26s ease-in-out infinite alternate; }
@keyframes kbPan {
  from { transform: translateX(-4%) scale(1.12); }
  to   { transform: translateX(4%) scale(1.12); }
}

.kb-zoom-out { animation: kbZoomOut 22s ease-in-out infinite alternate; }
@keyframes kbZoomOut {
  from { transform: scale(1.2); }
  to   { transform: scale(1); }
}

.kb-zoom-in { animation: kbZoomIn 22s ease-in-out infinite alternate; }
@keyframes kbZoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

.kb-pan-v { animation: kbPanV 24s ease-in-out infinite alternate; }
@keyframes kbPanV {
  from { transform: translateY(-5%) scale(1.15); }
  to   { transform: translateY(5%) scale(1.15); }
}

/* ---------- Why PCM ---------- */
.why { background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 28px;
}
.why-item { margin: 0; }
.why-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  margin-bottom: 18px;
}
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why-item h3 { color: var(--navy); }
.why-item p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.media-portrait { object-position: center 30%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gray-band);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto; color: var(--navy); }
.cta-line {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--muted);
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Services ---------- */
.services { background: #fff; }
.card-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px 16px 0 0;
  background: #dfe4e9;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media-render { background: var(--render-bg); }
.card-media-render img { object-fit: contain; }
.card-body { padding: 26px 26px 28px; }
.card-body h3 { color: var(--navy); }
.card-body > p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card-body ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.card-body li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.card-body li:last-child { border-bottom: 0; padding-bottom: 0; }
.card-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Contact ---------- */
.contact { background: var(--gray-band); }
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(20,58,82,.06);
}
.contact-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.contact-role { color: var(--muted); font-size: 15px; margin-top: 2px; }
.contact-rows {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.contact-rows li {
  display: grid;
  grid-template-columns: 24px 62px 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.5;
}
.contact-rows li:last-child { border-bottom: 1px solid var(--line); }
.ci { color: var(--navy); display: flex; align-items: center; height: 1.5em; }
.ci svg { width: 19px; height: 19px; display: block; }
.ci-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-rows a { color: var(--navy); font-weight: 500; text-decoration: none; }
.contact-rows a:hover { text-decoration: underline; }
.contact-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-note {
  background: var(--sand);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-box { aspect-ratio: 4 / 3; background: #e6e9ed; }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.note-area { margin: 0; padding: 16px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  padding: 54px 0;
  text-align: center;
  font-size: 14px;
}
.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}
.footer-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-tag { margin-top: 6px; }
.footer-meta { margin-top: 18px; color: rgba(255,255,255,.62); }
.footer-web { margin-top: 4px; color: rgba(255,255,255,.62); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; }
}

@media (min-width: 1000px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899.98px) {
  :root { --pad-y: 64px; }
}

@media (max-width: 699.98px) {
  body { font-size: 16px; }
  .brand-name { font-size: .95rem; }
  .header-call { padding: 10px 16px; font-size: 13px; }
  .brand-logo { height: 38px; width: 38px; }
  .hero-logo { width: 96px; height: 96px; }
  .hero-logo img { width: 82px; height: 82px; }
  .hero-actions .btn { width: 100%; }
  .contact-card { padding: 24px; }
  .contact-rows li { grid-template-columns: 22px 54px 1fr; gap: 8px; font-size: 15px; }
  .contact-rows .ci-label { font-size: 11px; letter-spacing: .06em; }
  .contact-actions .btn { width: 100%; }
}

@media (max-width: 499.98px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
  .brand { gap: 9px; }
  .brand-name { font-size: .88rem; }
  .header-call { padding: 9px 14px; font-size: 12px; }
  .montage-bar { width: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .kb-pan, .kb-zoom-in, .kb-zoom-out, .kb-pan-v,
  .hero-chevron, .montage-dot {
    animation: none !important;
  }
  .kb-pan { transform: scale(1.12); }
  .kb-pan-v { transform: scale(1.15); }
  .hero-chevron { transform: translateX(-50%); }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}
