/*
 * Apple-Style Glassmorphism Design for SmileWorks
 * Focus: Clean, Modern, Fluid, System Fonts, Glass Effects
 */

:root {
  /* Palette: Clean White, Soft Gray, Royal Blue Accent */
  --primary-color: #0071e3;
  /* Apple Blue */
  --secondary-color: #1d1d1f;
  /* Apple Dark Gray */
  --accent-color: #f5f5f7;
  /* Apple Light Gray Background */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --text-color: #1d1d1f;
  --heading-color: #1d1d1f;
  --link-color: #0066cc;
  --nav-height: 60px;
  /* Sleek height */
  --transition-speed: 0.4s;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  /* System UI Font Stack for Native Feel */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Tight tracking for modern headings */
  margin-top: 0;
}

/* Container utility */
.container {
  width: 88%;
  max-width: 1080px;
  /* Slightly narrower for focus */
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 113, 227, 0.15);
  box-shadow: var(--glass-shadow);
}

/* Navigation bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  /* Semi-transparent */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2rem;
}

.logo-icon {
  width: 40px;
  /* Restored to 40px */
  height: 40px;
  margin-right: 16px;
  /* Increased from 10px */
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 1;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.8;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary-color);
  background: rgba(0, 113, 227, 0.05);
}

.nav-links a.active {
  opacity: 1;
  color: #ffffff;
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  /* Increase touch target for accessibility */
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all var(--transition-speed);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Phone CTA Button - Glass Style */
.phone-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 18px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 113, 227, 0.15);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.phone-cta:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.phone-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Language Switcher */
.language-switcher-toggle {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border: 1px solid #d2d2d7;
  border-radius: 6px;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
}

/* Language switcher in mobile menu */
.nav-lang-switcher-mobile {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 8rem;
  /* Increased padding for impact */
  text-align: center;
  overflow: hidden;
  /* Removed solid background to let image show */
  color: white;
  /* Text needs to be white on dark background */
}

/* Background image with blur effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Turquoise tint overlay */
  box-shadow: inset 0 0 0 1000px rgba(0, 113, 227, 0.3);
  filter: blur(8px) brightness(0.8);
  /* Restored blur and adjusted brightness */
  transform: scale(1.1);
  /* Prevent blur edges */
}

/* Portrait orientation (mobile) */
@media (orientation: portrait) {
  .hero::before {
    background-image: url('/assets/images/ChatGPT Image Sep 14, 2025, 04_04_06 AM.png');
  }
}

/* Landscape orientation (desktop) */
@media (orientation: landscape) {
  .hero::before {
    background-image: url('/assets/images/ChatGPT Image Sep 14, 2025, 04_04_26 AM.png');
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.03em;
  background: none;
  /* Remove gradient text for hero */
  -webkit-text-fill-color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  /* Fully opaque white for better visibility */
  max-width: 600px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Glass Buttons */
.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 980px;
  /* Pill shape */
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.cta-button:hover {
  background: #0077ed;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: #ffffff;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #1d1d1f;
  /* Darker for readability */
  line-height: 1.6;
}

.about-features {
  display: grid;
  gap: 1.5rem;
}

/* Feature Cards - Vertical List Layout (like services) */
.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1.5px solid rgba(0, 113, 227, 0.15);
  text-align: left;
}

.feature-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.35);
}

.feature-card img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 12px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 12px;
}

.feature-card-content {
  flex: 1;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--heading-color);
}

.feature-card p {
  color: #6e6e73;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile adjustments for feature cards */
@media (max-width: 600px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem;
  }
  
  .feature-card:hover {
    transform: translateY(-4px);
  }
  
  .feature-card img {
    width: 56px;
    height: 56px;
  }
}

.feature {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  /* More opaque */
  border-radius: var(--radius);
  border: 1.5px solid rgba(0, 113, 227, 0.15);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  display: flex;
  /* Align icon and text */
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  /* Ensure icons are visible */
}

.feature h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #1d1d1f;
}

.feature p {
  font-size: 1rem;
  color: #424245;
  /* Darker gray */
  margin: 0;
}

/* Services Page */
.page-hero {
  background: #f5f5f7;
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-hero .hero-subtitle {
  color: #1d1d1f;
  text-shadow: none;
}

.page-title {
  font-size: 3rem;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Services List - Modern Vertical Layout */
.services-list {
  padding: 4rem 0;
  background: #f5f5f7;
}

.services-list .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  padding: 0 1rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1.5px solid rgba(0, 113, 227, 0.15);
  text-align: left;
}

.service-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 113, 227, 0.35);
}

.service-card img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 12px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 12px;
}

.service-card-content {
  flex: 1;
}

.service-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--heading-color);
}

.service-card p {
  color: #6e6e73;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile adjustments for services */
@media (max-width: 600px) {
  .service-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem;
  }
  
  .service-card:hover {
    transform: translateY(-4px);
  }
  
  .service-card img {
    width: 56px;
    height: 56px;
  }
}

/* ========================================
   PRICING PAGE - Modern Card Design
   ======================================== */

.prices-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
  min-height: 100vh;
}

.prices-section .container {
  max-width: 1000px;
}

/* Free Consultation Highlight Card - Glassmorphism Style */
.price-highlight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(0, 113, 227, 0.08);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 113, 227, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.price-highlight-card:hover {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 8px 32px rgba(0, 113, 227, 0.15);
}

.price-highlight-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.price-highlight-content {
  flex: 1;
}

.price-highlight-content h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.price-highlight-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.price-highlight-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Price Categories Grid */
.price-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Price Category Card */
.price-category-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1.5px solid rgba(0, 113, 227, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.price-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.price-category-card.highlight {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.15);
}

.price-category-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-category-card.highlight .price-category-header {
  background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f9 100%);
}

.price-category-icon {
  font-size: 1.5rem;
}

.price-category-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* Price Items */
.price-items {
  padding: 0.5rem 0;
}

.price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease;
  position: relative;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item:hover {
  background: rgba(0, 113, 227, 0.03);
}

.price-item.featured {
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.05) 0%, transparent 100%);
}

.price-item-name {
  font-size: 0.95rem;
  color: #1d1d1f;
  flex: 1;
  padding-right: 1rem;
}

.price-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  white-space: nowrap;
}

.price-item-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust Badges */
.price-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #424245;
}

.trust-badge-icon {
  width: 24px;
  height: 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Price CTA */
.price-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.price-cta p {
  font-size: 1.1rem;
  color: #6e6e73;
  margin: 0 0 1.5rem 0;
}

.price-cta .cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Responsive adjustments for pricing */
@media (max-width: 768px) {
  .price-highlight-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .price-highlight-badge {
    margin-top: 1rem;
  }
  
  .price-categories {
    grid-template-columns: 1fr;
  }
  
  .price-trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .price-item-price {
    align-self: flex-end;
  }
  
  .price-item-badge {
    position: static;
    margin-top: 0.5rem;
  }
}

/* Team/Doctor Page */
.team-section {
  padding: 4rem 0;
  background: #ffffff;
}

/* Contact Page */
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding: 4rem 1rem;
  align-items: start;
}

.contact-details {
  height: 100%;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.8);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.contact-form .cta-button {
  width: 100%;
  margin-top: 1.5rem;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #f5f5f7;
  color: #1d1d1f;
  padding-top: 4rem;
  border-top: 1px solid #d2d2d7;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  filter: none;
  /* Keep original logo colors or adjust */
}

.footer-nav a,
.footer-contact a,
.footer-contact p {
  color: #424245;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0.4rem 0;
  display: block;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #d2d2d7;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #424245;
  /* Darker for readability */
}

/* Responsive - Tablet (1024px and below) */
@media (max-width: 1024px) {
  .nav-links {
    gap: 0.8rem;
  }
  
  .nav-links a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
}

/* Mobile Menu Backdrop Overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Responsive - Mobile (768px and below) */
@media (max-width: 768px) {
  /* Compact header on mobile */
  .navbar {
    display: block !important;
    visibility: visible !important;
    --nav-height: 60px;
    height: var(--nav-height);
    min-height: var(--nav-height);
    background: #ffffff !important; /* Force solid white background */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    border-bottom: 2px solid #0071e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }

  .nav-content {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
    height: 100%;
    width: 100%;
  }
  
  /* 1. Logo (Left) */
  .navbar .logo {
    display: flex !important;
    visibility: visible !important;
    margin-right: 0;
    z-index: 3;
    max-width: 40%; /* Prevent overlap with center */
  }

  .navbar .logo-text {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 0.85rem; /* Slightly smaller text to fit */
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .navbar .logo-icon {
    display: inline-block !important;
    visibility: visible !important;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    filter: brightness(0) !important;
    -webkit-filter: brightness(0) !important;
    opacity: 1 !important;
  }

  /* 2. Phone CTA (Center) */
  .navbar .phone-cta {
    display: flex !important;
    visibility: visible !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 3;
    
    /* Glass style */
    background: rgba(0, 113, 227, 0.12) !important;
    border: 2px solid rgba(0, 113, 227, 0.3) !important;
    color: #0071e3 !important;
  }
  
  .navbar .phone-cta .phone-number {
    display: none;
  }
  
  .navbar .phone-icon {
    width: 20px;
    height: 20px;
    fill: #0071e3 !important;
    stroke: #0071e3 !important;
  }

  /* 3. Page Name Menu Button (Right) */
  .nav-toggle.page-name-btn {
    display: flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: fit-content;
    height: 40px;
    padding: 0 0.9rem;
    background: rgba(0, 113, 227, 0.12);
    border: 2px solid rgba(0, 113, 227, 0.3);
    border-radius: 20px;
    color: #0071e3;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .nav-toggle.page-name-btn:active,
  .nav-toggle.page-name-btn.active {
    background: #0071e3;
    color: white;
  }

  /* Hide old hamburger bar spans */
  .nav-toggle span.bar {
    display: none;
  }

  /* Force page-name labels to be visible */
  .nav-toggle.page-name-btn .current-page-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    color: inherit;
  }
  
  /* Mobile Navigation Menu */
  .nav-links {
    position: fixed;
    top: 60px; /* Match nav-height */
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    gap: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  .nav-links.open {
    transform: translateY(0);
  }
  
  /* Reduce link sizes in mobile menu */
  .nav-links a {
    padding: 1rem;
    font-size: 1.1rem;
    display: block;
    text-align: center;
    border-radius: 12px;
    background: #f5f5f7;
    color: #1d1d1f;
  }
  
  .nav-links a.active {
    background: #0071e3;
    color: white;
  }

  /* Hide desktop language switcher in header on mobile, show in menu instead */
  .language-switcher-desktop {
    display: none !important;
  }
  
  .nav-lang-switcher-mobile {
    display: flex;
    margin-top: auto; /* Push to bottom */
    padding-bottom: 2rem;
  }
  
  /* Ensure language switcher inside mobile menu is visible */
  .nav-lang-switcher-mobile .language-switcher {
    display: flex !important;
  }

  /* Content layouts */
  .about-content,
  .contact-section .container {
    grid-template-columns: 1fr;
  }

  /* Hero section mobile optimization */
  .hero {
    padding: 5rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

/* Small Phones - Extra optimization (375px and below) */
@media (max-width: 375px) {
  .navbar .logo-text {
    font-size: 0.8rem; /* Even smaller for tiny screens */
  }
  
  .navbar .logo-icon {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }
  
  .nav-toggle.page-name-btn {
    padding: 0 0.75rem;
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    padding: 0.7rem 0.8rem;
  }
}

/* ===========================================
   BLOG ARTICLE PAGE - News/Article Styling
   =========================================== */

/* Main container for blog articles */
.blog-main {
  min-height: calc(100vh - var(--nav-height) - 200px);
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 0 5rem;
}

/* Article wrapper */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: #ffffff;
  position: relative;
}

/* Post header - title and meta */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.25;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

.post-meta {
  color: #6b7280;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-meta time {
  font-weight: 500;
}

.post-author {
  color: #9ca3af;
}

/* Post footer */
.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(0, 113, 227, 0.15);
  transform: translateX(-4px);
}

/* Responsive adjustments for article layout */
@media (max-width: 768px) {
  .blog-main {
    padding: 2rem 0 3rem;
  }
  
  .blog-post {
    padding: 0 1rem;
  }
  
  .post-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .post-footer {
    margin-top: 3rem;
  }
}

@media (min-width: 769px) {
  .blog-post {
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
  }
}

/* Blog Post Content - Beautiful Markdown Styling */
.post-content {
  color: var(--text-color);
  font-size: 1.125rem;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--heading-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.4rem;
}

.post-content h3 {
  font-size: 1.35rem;
}

.post-content h4 {
  font-size: 1.15rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.post-content strong {
  color: var(--heading-color);
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}

.post-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: var(--primary-color);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin: 0.5rem 0;
}

.post-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(0, 113, 227, 0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #424245;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  background: #f5f5f7;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  color: #e83e8c;
}

.post-content pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #1d1d1f;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #f5f5f7;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d2d2d7, transparent);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Tables - Beautiful styling */
.post-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-content thead {
  background: var(--primary-color);
  color: white;
}

.post-content th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.6;
}

.post-content tbody tr:last-child td {
  border-bottom: none;
}

.post-content tbody tr:hover {
  background: rgba(0, 113, 227, 0.03);
}

.post-content tbody tr:nth-child(even) {
  background: #fafafa;
}

.post-content tbody tr:nth-child(even):hover {
  background: rgba(0, 113, 227, 0.05);
}

/* Definition lists */
.post-content dl {
  margin: 1.5rem 0;
}

.post-content dt {
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 1rem;
}

.post-content dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #424245;
}

/* Emoji and special characters */
.post-content p:first-child {
  font-size: 1.15rem;
  color: #424245;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-content {
    font-size: 1rem;
  }
  
  .post-content h1 {
    font-size: 1.6rem;
  }
  
  .post-content h2 {
    font-size: 1.4rem;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
  
  .post-content table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }
  
  .post-content th,
  .post-content td {
    padding: 0.75rem 0.5rem;
    min-width: 120px;
  }
  
  .post-content blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* Services Preview */
.services-preview {
  padding: 6rem 0;
  background: #ffffff;
}

.services-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* ===========================================
   PROFESSIONAL MOBILE HEADER
   Apple-style Glassmorphism Design
   =========================================== */

/* Force fixed header on all viewports */
header.navbar,
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 60px !important;
  min-height: 60px !important;
  z-index: 10000 !important;
  
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  
  /* Subtle bottom border and shadow */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
              0 4px 12px rgba(0, 0, 0, 0.03) !important;
  
  /* Transitions */
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

/* Nav content - 3-column flex layout */
.navbar .nav-content,
.navbar .container.nav-content,
.navbar > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 12px !important;
  margin: 0 !important;
  gap: 6px !important;
}

/* ===== LEFT: Logo ===== */
.navbar .logo {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  flex-shrink: 2 !important;
  min-width: 0 !important;
  max-width: 36% !important;
}

.navbar .logo-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  border-radius: 6px !important;
}

.navbar .logo-text {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #1d1d1f !important;
  white-space: nowrap !important;
  overflow: visible !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* ===== CENTER: Phone CTA ===== */
.navbar .phone-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  position: static !important;
  transform: none !important;
  
  /* Pill shape with enough width for full number */
  padding: 0 13px !important;
  height: 36px !important;
  min-height: 36px !important;
  min-width: fit-content !important;
  border-radius: 18px !important;
  
  /* Gradient background - dental blue to teal */
  background: linear-gradient(135deg, #0071e3 0%, #00a8a8 100%) !important;
  border: none !important;
  
  /* Shadow for depth */
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25),
              0 4px 12px rgba(0, 168, 168, 0.15) !important;
  
  /* Text styling */
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0px !important;
  
  /* Flex properties */
  flex-shrink: 0 !important;
  
  /* Transitions */
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease !important;
}

.navbar .phone-cta:active {
  transform: scale(0.97) !important;
  opacity: 0.9 !important;
}

.navbar .phone-icon {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  stroke: #ffffff !important;
  fill: none !important;
  flex-shrink: 0 !important;
}

.navbar .phone-number {
  display: inline !important;
  white-space: nowrap !important;
}

/* ===== RIGHT: Hamburger Menu Button ===== */
.navbar .nav-toggle,
.navbar #navToggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Circular button */
  padding: 0 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 18px !important;
  
  /* Glass effect */
  background: rgba(0, 113, 227, 0.08) !important;
  border: 1px solid rgba(0, 113, 227, 0.12) !important;
  
  /* Button reset */
  cursor: pointer !important;
  
  /* Flex properties */
  flex-shrink: 0 !important;
  
  /* Transitions */
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

.navbar .nav-toggle:active {
  background: rgba(0, 113, 227, 0.15) !important;
  transform: scale(0.97) !important;
}

.navbar .nav-toggle.active {
  background: #0071e3 !important;
  border-color: #0071e3 !important;
}

/* Hamburger icon SVG */
.navbar .menu-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

/* Hamburger lines */
.navbar .menu-icon .line {
  stroke: #0071e3 !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  transition: transform 220ms cubic-bezier(0.4, 0.0, 0.2, 1),
              opacity 180ms ease,
              stroke 180ms ease !important;
  transform-origin: 12px 12px !important;
}

/* Active state - change line color to white */
.navbar .nav-toggle.active .menu-icon .line {
  stroke: #ffffff !important;
}

/* Animated X when open */
.navbar .nav-toggle.active .menu-icon .top {
  transform: translateY(5px) rotate(45deg) !important;
}

.navbar .nav-toggle.active .menu-icon .middle {
  opacity: 0 !important;
}

.navbar .nav-toggle.active .menu-icon .bottom {
  transform: translateY(-5px) rotate(-45deg) !important;
}

/* ===== Hide elements not needed in mobile header ===== */
.navbar .language-switcher-desktop {
  display: none !important;
}

/* ===== Navigation Links (Off-canvas menu) ===== */
.navbar .nav-links {
  display: none !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100vh - 60px) !important;
  
  /* Glass background */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  
  /* Layout */
  flex-direction: column !important;
  padding: 20px !important;
  gap: 8px !important;
  
  /* Animation */
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease !important;
  
  z-index: 9999 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.navbar .nav-links.open {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Nav links styling */
.navbar .nav-links a {
  padding: 14px 20px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1d1d1f !important;
  text-decoration: none !important;
  text-align: center !important;
  border-radius: 12px !important;
  background: #f5f5f7 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

/* Hide language-specific links by default */
.navbar .nav-links a[data-lang-content] {
  display: none !important;
}

/* Show only current language links */
.navbar .nav-links a[data-lang-content="ro"] {
  display: block !important;
}

html[data-lang="en"] .navbar .nav-links a[data-lang-content="ro"] {
  display: none !important;
}

html[data-lang="en"] .navbar .nav-links a[data-lang-content="en"] {
  display: block !important;
}

.navbar .nav-links a:active {
  background: #e5e5e7 !important;
}

.navbar .nav-links a.active {
  background: #0071e3 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Language switcher in mobile menu */
.navbar .nav-lang-switcher-mobile {
  display: flex !important;
  justify-content: center !important;
  margin-top: auto !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ===== Body padding for fixed header ===== */
body {
  padding-top: 60px !important;
}

/* ===== Reset hero margin ===== */
.hero {
  margin-top: 0 !important;
}

/* ===== Small screen adjustments ===== */
@media (max-width: 360px) {
  .navbar .logo {
    max-width: 40% !important;
  }
  .navbar .logo-text {
    font-size: 10px !important;
  }
  .navbar .logo-icon {
    width: 20px !important;
    height: 20px !important;
  }
  .navbar .phone-cta {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .navbar .phone-icon {
    width: 13px !important;
    height: 13px !important;
  }
  .navbar .nav-toggle {
    width: 34px !important;
    height: 34px !important;
  }
  .navbar .menu-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ===== DESKTOP LAYOUT (min-width: 769px) ===== */
@media (min-width: 769px) {
  /* Desktop header layout */
  .navbar .nav-content,
  .navbar .container.nav-content,
  .navbar > .container {
    justify-content: flex-start !important;
    padding: 0 24px !important;
    gap: 40px !important;
  }

  /* Logo - normal sizing for desktop */
  .navbar .logo {
    flex-shrink: 0 !important;
    max-width: none !important;
    gap: 8px !important;
  }

  .navbar .logo-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .navbar .logo-text {
    font-size: 16px !important;
    letter-spacing: -0.01em !important;
  }

  /* Desktop navigation menu - horizontal layout */
  .navbar .nav-links {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    flex-direction: row !important;
    padding: 0 !important;
    gap: 4px !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: auto !important;
    overflow: visible !important;
  }

  /* Desktop nav links styling */
  .navbar .nav-links a {
    display: inline-block !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #1d1d1f !important;
    border-radius: 8px !important;
    transition: background 0.15s ease !important;
  }

  .navbar .nav-links a:hover {
    background: rgba(0, 113, 227, 0.1) !important;
  }

  .navbar .nav-links a.active {
    background: transparent !important;
    color: #0071e3 !important;
    font-weight: 600 !important;
  }

  /* Hide language switcher from nav menu on desktop */
  .navbar .nav-lang-switcher-mobile {
    display: none !important;
  }

  /* Right-aligned items wrapper */
  .navbar .nav-toggle,
  .navbar .phone-cta,
  .navbar .language-switcher-desktop {
    margin-left: auto !important;
  }

  /* Phone CTA - larger on desktop */
  .navbar .phone-cta {
    padding: 0 16px !important;
    height: 38px !important;
    font-size: 14px !important;
    margin-right: 16px !important;
  }

  .navbar .phone-icon {
    width: 16px !important;
    height: 16px !important;
  }

  /* Show desktop language switcher */
  .navbar .language-switcher-desktop {
    display: flex !important;
  }

  /* Hide hamburger menu on desktop */
  .navbar .nav-toggle {
    display: none !important;
  }

  /* Adjust body padding for fixed header */
  body {
    padding-top: 60px !important;
  }
}