/* ============================================
   Robert Bruens, D.M.D. — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #f8c4b0;
  color: #762515;
}

/* ============================================
   Geometric Background Shapes (Hero)
   ============================================ */
.geo-shape {
  position: absolute;
  pointer-events: none;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 85, 42, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(227, 188, 74, 0.08) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  border-radius: 50%;
}

.geo-rect-1 {
  width: 120px;
  height: 120px;
  background: rgba(232, 85, 42, 0.05);
  border: 2px solid rgba(232, 85, 42, 0.1);
  top: 25%;
  right: 3%;
  border-radius: 20px;
  transform: rotate(45deg);
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(227, 188, 74, 0.06);
  bottom: 20%;
  right: 15%;
}

.geo-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, rgba(232, 85, 42, 0.15) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  top: 40%;
  left: 8%;
  border-radius: 50%;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8552a, #e3bc4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  position: relative;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
.nav-scrolled {
  background: rgba(253, 248, 240, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Mobile Menu Transitions
   ============================================ */
.mobile-link {
  transition: opacity 0.3s ease;
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 85, 42, 0.15);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }

  .geo-circle-2 {
    width: 150px;
    height: 150px;
  }

  .geo-rect-1 {
    width: 60px;
    height: 60px;
  }

  .geo-triangle {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(227, 188, 74, 0.06);
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  nav, #contact, footer, .geo-shape {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
