
:root {
  --primary-color: #2C5F8D;
  --accent-color: #4A90E2;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-color: #E5E5E5;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--accent-color);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: var(--white);
  padding: 80px 0 100px;
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

section p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
  background: var(--light-gray);
}

#about .container {
  max-width: 900px;
  text-align: center;
}

/* ============================================
   SERVICES - NUMBERED CARDS
   ============================================ */

#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Warm gradient overlay for better contrast and warmth */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(248, 250, 252, 0.8) 100%);
  z-index: 0;
  transition: all 0.4s ease;
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(248, 250, 252, 0.7) 100%);
}

/* Subtle warm accent overlay on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.03) 0%, rgba(123, 179, 240, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.15);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-number {
  opacity: 0.35;
}

.service-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.2rem 0 1rem 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  letter-spacing: -0.3px;
}

.service-card p {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

/* ============================================
   TABS (For detailed services)
   ============================================ */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: var(--light-gray);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.tab-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 1rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.tab-pane h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.tab-pane p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   GALLERY SECTION (Before/After)
   ============================================ */

#gallery {
  background: var(--light-gray);
  padding: 80px 0;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-tab {
  background: var(--white);
  border: 2px solid var(--border-color);
  padding: 0.75rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-item .placeholder {
  width: 100%;
  height: 300px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

.gallery-item h4 {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================
   TEAM SECTION
   ============================================ */

#team {
  background: var(--white);
}

.team-members {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.member {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 300px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.member:hover {
  box-shadow: 0 10px 30px var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--light-gray);
}

.member h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.member p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ============================================
   INSURANCE/FINANCIAL SECTION
   ============================================ */

#financial,
#financial-zh {
  background: var(--accent-color);
  color: var(--white);
  padding: 80px 0;
}

#financial h2,
#financial h3,
#financial-zh h2,
#financial-zh h3 {
  color: var(--white);
  text-align: center;
}

#financial p,
#financial-zh p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
}

#financial a,
#financial-zh a {
  color: var(--white);
  text-decoration: underline;
}

#financial ul,
#financial-zh ul {
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
}

#financial li,
#financial-zh li {
  margin-bottom: 0.8rem;
}

.insurance-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.insurance-cta .btn {
  background: var(--white);
  color: var(--accent-color);
}

.insurance-cta .btn:hover {
  background: var(--light-gray);
}

.insurance-image-container {
  max-width: 900px;
  margin: 3rem auto;
  position: relative;
  overflow: visible;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.insurance-image {
  width: 60%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  /* Crop out "DENTAL INSURANCE" text at top (18%) and Nippo Life on right (18%) */
  clip-path: polygon(0 18%, 82% 18%, 82% 100%, 0 100%);
  -webkit-clip-path: polygon(0 18%, 82% 18%, 82% 100%, 0 100%);
  position: relative;
  margin: 0 auto;
}

/* Overlay to hide top "DENTAL INSURANCE" text - positioned to match the 60% centered image */
.insurance-image-container::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 540px;
  height: 15%;
  background: var(--accent-color);
  z-index: 2;
  pointer-events: none;
  border-radius: 12px 12px 0 0;
}

/* Overlay to hide Nippo Life section on the right - positioned to match the 60% centered image */
.insurance-image-container::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: calc(50% + 30% - 10.8%);
  width: 10.8%;
  max-width: 97px;
  height: calc(100% - 2rem);
  background: var(--accent-color);
  z-index: 2;
  pointer-events: none;
  border-radius: 0 12px 12px 0;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

#reviews {
  background: var(--light-gray);
  padding: 80px 0;
}

.reviews-carousel {
  max-width: 900px;
  margin: 3rem auto 0;
  position: relative;
}

.reviews-carousel-wrapper {
  max-width: 1200px;
  margin: 3rem auto 0;
  position: relative;
  padding: 0 60px;
}

.reviews-carousel-container {
  overflow: hidden;
  position: relative;
}

.reviews-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 calc(33.333% - 1.33rem);
  min-width: 0;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: 2px solid var(--border-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.review-nav-btn.prev {
  left: 0;
}

.review-nav-btn.next {
  right: 0;
}

.review-nav-btn:hover {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}

.review-dot.active {
  background: var(--accent-color);
}

@media (max-width: 768px) {
  .reviews-carousel-wrapper {
    padding: 0 50px;
  }
  
  .review-card {
    flex: 0 0 100%;
  }
  
  .review-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-stars {
  color: #FFC107;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

.review-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.review-author {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.review-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.review-nav button {
  background: var(--white);
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.review-nav button:hover {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.reviews-link {
  text-align: center;
  margin-top: 2rem;
}

.reviews-link a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.reviews-link a:hover {
  text-decoration: underline;
}

/* ============================================
   FAQ SECTION
   ============================================ */

#faq {
  background: var(--white);
}

.faq-item {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: left;
}

.faq-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   CONTACT & MAP
   ============================================ */

#contact,
#findus,
#findus-zh {
  background: var(--light-gray);
}

#contact .container,
#findus .container,
#findus-zh .container {
  text-align: center;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Office Hours Styles */
.office-hours {
  max-width: 600px;
  margin: 3rem auto 0;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.office-hours h3 {
  color: var(--text-dark);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hours-item:hover {
  background: rgba(74, 144, 226, 0.05);
  transform: translateX(5px);
}

.hours-item.closed {
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.03);
}

.hours-item .day {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.hours-item .time {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
}

.hours-item.closed .time {
  color: #999;
  font-style: italic;
}

#findus iframe,
#findus-zh iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-top: 2rem;
  box-shadow: 0 5px 15px var(--shadow);
}

/* ============================================
   MODAL
   ============================================ */

.doctor-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-modal-content {
  background: var(--white);
  border-radius: 8px;
  max-width: 700px;
  width: 90vw;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.doctor-modal-content .close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.doctor-modal-content .close:hover {
  color: var(--accent-color);
}

.doctor-modal-content h2 {
  color: var(--accent-color);
  text-align: left;
  margin-bottom: 1rem;
}

.doctor-modal-content h4 {
  color: var(--text-light);
  text-align: left;
  margin-bottom: 1.5rem;
}

.doctor-modal-content p,
.doctor-modal-content ul {
  color: var(--text-light);
  line-height: 1.8;
  text-align: left;
}

.doctor-modal-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */

#education,
#education-zh {
  background: var(--light-gray);
}

#education article,
#education-zh article {
  background: var(--white) !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px var(--shadow) !important;
  padding: 2rem 1.5rem !important;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease !important;
}

#education article:hover,
#education-zh article:hover {
  box-shadow: 0 8px 20px var(--shadow-hover) !important;
  transform: translateY(-3px) !important;
}

#education article h3,
#education-zh article h3 {
  color: var(--accent-color) !important;
  margin-bottom: 1rem !important;
}

#education article p,
#education-zh article p {
  color: var(--text-light) !important;
  line-height: 1.8 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 15px var(--shadow);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-members {
    flex-direction: column;
    align-items: center;
  }
  
  .member {
    width: 100%;
    max-width: 400px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .tab-content {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

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

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}
