/* ═══════════════════════════════════════════
   JPD LAB NYC — Premium Dental Lab Website
   ═══════════════════════════════════════════ */

:root {
  --void: #0A0A0C;
  --surface: #111114;
  --card: #18181C;
  --card-hover: #1E1E24;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --gold: #C9A962;
  --gold-light: #D4BA7A;
  --gold-dim: rgba(201,169,98,0.10);
  --gold-glow: rgba(201,169,98,0.04);

  --text: #F0EDE6;
  --text-sec: #8A8A96;
  --text-muted: #4A4A56;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'DM Mono', monospace;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--gold); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════ NAV ═══════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
  background: rgba(10,10,12,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  width: 180px;
  height: auto;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-logo:hover .nav-logo-img { opacity: 1; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sec);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.nav-cta:hover { opacity: 0.7; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text-sec);
  transition: all 0.3s;
}

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.7) 0%, rgba(10,10,12,0.5) 40%, rgba(10,10,12,0.85) 100%),
    url('images/nyc-skyline.jpg') center center / cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,98,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,98,0.04) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
  animation: heroFade 1.2s var(--ease-out) both;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFade 0.8s 0.2s var(--ease-out) both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  opacity: 0;
  animation: heroFade 0.8s 0.4s var(--ease-out) both;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: heroFade 0.8s 0.6s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFade 0.8s 0.8s var(--ease-out) both;
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  margin-top: 80px;
  opacity: 0;
  animation: heroFade 0.8s 1.0s var(--ease-out) both;
}

.hero-stat { text-align: center; }

.hero-stat-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-num::after { content: '+'; font-size: 24px; opacity: 0.6; }

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFade 0.8s 1.4s var(--ease-out) both;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ═══════════════ BUTTONS ═══════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--void);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201,169,98,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full { width: 100%; }

/* ═══════════════ SECTIONS ═══════════════ */

.section { padding: 120px 0; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.8;
}

.section-header.center {
  text-align: center;
  margin-bottom: 64px;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ═══════════════ ABOUT ═══════════════ */

.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-image {
  position: relative;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: left center;
  aspect-ratio: 3/3.2;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--void);
  padding: 20px 24px;
  border-radius: 8px;
  text-align: center;
}

.about-badge-num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.about-badge-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.8;
}

.about-content p {
  color: var(--text-sec);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-lead {
  font-size: 18px !important;
  color: var(--text) !important;
  line-height: 1.7;
  margin-bottom: 24px !important;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.credential {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.credential:hover { border-color: var(--gold-dim); }

.credential-featured {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.credential-featured .credential-sub {
  color: var(--gold);
  font-weight: 500;
}

.credential-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.credential-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.credential-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════ SERVICES ═══════════════ */

.services { background: var(--void); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-img {
  margin: -32px -24px 20px -24px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.service-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-icon {
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.8;
}

.service-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
}

/* ═══════════════ PROCESS ═══════════════ */

.process { background: var(--surface); }

.process-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.process-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 20px;
}

.process-line {
  width: 100%;
  height: 1px;
  background: var(--border-hover);
  margin-bottom: 24px;
  position: relative;
}

.process-line::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--surface);
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ═══════════════ TESTIMONIALS ═══════════════ */

.testimonials { background: var(--void); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
  position: relative;
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  position: absolute;
  top: 20px;
  left: 30px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════ SHOWCASE CAROUSEL ═══════════════ */

.showcase { background: var(--surface); padding-bottom: 80px; }

.carousel-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s var(--ease-out);
  cursor: grab;
}

.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}

.carousel-card {
  flex: 0 0 calc((100% - 40px) / 3);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
}

.carousel-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.carousel-img {
  width: 100%;
  height: 320px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.carousel-card:hover .carousel-img img {
  transform: scale(1.03);
}

.carousel-info {
  padding: 16px 20px;
  text-align: center;
}

.carousel-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: var(--card);
  color: var(--text-sec);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--card-hover);
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

/* ═══════════════ CONTACT ═══════════════ */

.contact { background: var(--void); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--text-sec);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.contact-link {
  transition: color 0.3s;
}

.contact-link:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A4A56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--card);
  color: var(--text);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══════════════ FOOTER ═══════════════ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo-img {
  width: 200px;
  height: auto;
  filter: invert(1);
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════ SCROLL ANIMATIONS ═══════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-img img { height: 180px; }
  .about-grid { gap: 48px; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 32px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-credentials { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .process-steps {
    flex-direction: column;
    gap: 32px;
  }

  .process-step { text-align: left; padding: 0; }
  .process-line { display: none; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .carousel-card { flex: 0 0 calc((100% - 20px) / 2); }
  .carousel-img { height: 260px; }
  .carousel-wrap { padding: 0 48px; }

  .contact-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .carousel-card { flex: 0 0 100%; }
  .carousel-img { height: 240px; }
  .carousel-wrap { padding: 0 40px; }

  .footer-links { grid-template-columns: 1fr; }
}
