/* ==========================================================================
   The Minimalist Dentist — Responsive Design System & Mobile Navigation
   ========================================================================== */

/* ── NAV & HAMBURGER TOGGLE ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  background: var(--ivory, #F7F3EC);
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  transition: padding 0.3s ease, background 0.3s ease;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
}

.nav-logo-img {
  height: 68px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.92;
  transform: scale(1.02);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: opacity 0.2s ease;
  filter: brightness(0) invert(1);
}

.footer-logo:hover .footer-logo-img {
  opacity: 0.92;
}

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background-color: rgba(44, 44, 44, 0.05);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--charcoal, #2C2C2C);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease;
  transform-origin: center;
}

/* Hamburger Active / Open State Animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--orange, #D96B3A);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--orange, #D96B3A);
}

/* ── NAV LINKS (DESKTOP) ── */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal, #2C2C2C);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a.active {
  border-bottom: 1px solid var(--orange, #D96B3A);
}

/* Body Scroll Lock when menu open */
body.nav-open {
  overflow: hidden !important;
}

/* ── MOBILE NAV & RESPONSIVE BREAKPOINTS ── */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--ivory, #F7F3EC);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    padding: 6rem 2rem 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    font-weight: 500;
  }

  /* Universal Section Padding & Grid Adjustments */
  .hero,
  .page-hero,
  .section,
  .pillars,
  .services-section,
  .services-teaser,
  .process,
  .cta-band,
  .article-container,
  .contact-container,
  footer {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Hero 100% Viewport Fix */
  .hero {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 5rem !important;
    padding-bottom: 2.5rem !important;
    box-sizing: border-box !important;
  }

  .hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-btns .btn,
  .hero-btns .btn-outline {
    width: 100% !important;
    margin: 0 !important;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .page-hero {
    padding-top: 7.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.8rem) !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-sub {
    margin-bottom: 2rem !important;
  }

  .pillars-grid,
  .services-grid,
  .process-steps,
  .blog-grid,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .services-teaser {
    grid-template-columns: 1fr !important;
    padding: 3.5rem 1.5rem !important;
    gap: 2rem !important;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 3.5rem 1.5rem !important;
    gap: 1.5rem !important;
  }

  footer {
    flex-direction: column;
    text-align: left !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    padding: 2.5rem 1.5rem !important;
  }

  footer div,
  footer .footer-container,
  footer .footer-info,
  footer .footer-brand,
  footer .footer-bottom {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .hero-btns .btn,
  .hero-btns .btn-outline {
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .services-right .btn,
  .form-group button,
  .btn-submit {
    width: 100% !important;
    text-align: center;
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
  }
}

/* ── AUTHOR AVATAR & FOOTER CARD RESPONSIVENESS ── */
.author-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.author-footer-card {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
}

.author-footer-card .author-avatar {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
}

.author-footer-card > div:last-child {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .author-footer-card {
    gap: 1rem;
    align-items: center;
  }
}

