/* ============================================
   IRWIN SAMET, DDS — Custom Styles
   Clean minimalist · Terracotta + Sand
   ============================================ */

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

body {
  overflow-x: hidden;
}

::selection {
  background: #B85C38;
  color: #fff;
}

/* ---- Navigation ---- */
.nav-fixed {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.nav-fixed.scrolled {
  background: rgba(253, 252, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 168, 126, 0.15);
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.25rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #B85C38;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-color {
  color: #5e4c37;
}

.nav-fixed.scrolled .nav-link-color {
  color: #5e4c37;
}

.nav-btn-color {
  color: #a34e2e;
}

.nav-fixed.scrolled .nav-btn-color {
  color: #B85C38;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.menu-line-top,
.menu-line-mid,
.menu-line-bot {
  left: 50%;
  transform: translateX(-50%);
}

#menuBtn.active .menu-line-top {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

#menuBtn.active .menu-line-mid {
  opacity: 0;
}

#menuBtn.active .menu-line-bot {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---- Hero ---- */
.hero-section {
  background: #fdfcfa;
}

.hero-content {
  opacity: 1;
  transform: none;
}

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.hero-img {
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(253, 252, 250, 0) 60%, rgba(253, 252, 250, 0.3) 100%);
  pointer-events: none;
}

.hero-float-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Scroll indicator */
.scroll-indicator {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: #e8d9c8;
  position: relative;
  overflow: hidden;
}

.scroll-line span {
  display: block;
  width: 100%;
  height: 16px;
  background: #B85C38;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-16px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---- Buttons ---- */
.btn-primary {
  border-radius: 0;
  letter-spacing: 0.12em;
}

.btn-secondary {
  border-radius: 0;
  letter-spacing: 0.12em;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: block;
}

/* ---- Divider ---- */
.divider-line {
  margin-left: -6px;
  margin-right: -6px;
}

@media (min-width: 640px) {
  .divider-line { margin-left: -10px; margin-right: -10px; }
}

@media (min-width: 1024px) {
  .divider-line { margin-left: -40px; margin-right: -40px; }
}

/* ---- Services ---- */
.service-card {
  transition: background 0.5s ease, transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* ---- About ---- */
.about-image-wrap {
  position: relative;
}

.about-accent-bar {
  border-radius: 2px;
}

/* ---- New Patients ---- */
.new-patient-step {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.5rem;
  margin-left: 0.25rem;
}

/* ---- Contact Form ---- */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #e8d9c8;
  background: transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #5e4c37;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #c4a87e;
}

.form-input:focus,
.form-textarea:focus {
  border-bottom-color: #B85C38;
}

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

.form-success {
  animation: fadeIn 0.5s ease forwards;
}

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

/* ---- Contact Icons ---- */
.contact-icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #B85C38;
}

/* ---- Map ---- */
.map-section {
  position: relative;
}

.map-overlay {
  background: linear-gradient(to bottom, rgba(253, 252, 250, 0.05) 0%, rgba(94, 76, 55, 0.08) 100%);
}

/* ---- Testimonial Quote ---- */
.testimonial-quote {
  opacity: 0.6;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .hero-float-card {
    display: none;
  }
}
