/* Header and Footer Styles */

/* Navigation */
.navbar {
  background: var(--alabaster);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  will-change: transform;
}

/* Hide header when scrolled down */
.navbar.navbar--hidden {
  transform: translateY(-100%);
}

/* Show header when scrolling up */
.navbar.navbar--visible {
  transform: translateY(0);
}

/* Enhanced shadow when scrolled */
.navbar.navbar--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Disable transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .navbar {
    transition: none;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.nav-logo img {
  height: 50px;
  width: auto;
  margin: 10px 0;
}

.nav-logo:hover img {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--bistre);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Active state for hamburger */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.nav-link {
  text-decoration: none;
  color: var(--bistre);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--coral);
}

.phone-btn {
  background: var(--coffee-button);
  border-color: var(--coffee);
  color: var(--alabaster);
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.phone-btn:hover {
  background: var(--alabaster-button-hover);
  border-color: var(--coral);
  color: var(--coral);
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--bistre);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hamburger animation when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer */
footer {
  background: linear-gradient(
    135deg,
    var(--bistre) 0%,
    rgba(37, 20, 8, 0.95) 100%
  );
  color: var(--alabaster);
  padding: 50px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2.5fr 2fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.footer-logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-section h3 {
  margin-bottom: 25px;
  font-size: 1.2rem;
  color: var(--alabaster);
  border-bottom: 2px solid var(--lion);
  padding-bottom: 10px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.footer-section h4 {
  color: var(--lion);
  font-size: 0.95rem;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--lion);
  padding-bottom: 8px;
}

.footer-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--alabaster);
}

.footer-section strong {
  color: var(--lion);
}

.contact-item {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item strong {
  font-size: 0.85rem;
  color: var(--lion);
}

.contact-item a,
.contact-item span {
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--alabaster);
}

.contact-item a {
  color: var(--alabaster) !important;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-item a:hover {
  color: var(--lion) !important;
}

.address-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.address-link span {
  color: var(--alabaster) !important;
}

.address-link:hover span {
  color: var(--lion) !important;
}

.hours-item-footer {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hours-item-footer strong {
  font-size: 0.85rem;
  color: var(--lion);
}

.hours-item-footer span {
  font-size: 0.85rem;
  color: var(--alabaster);
}

.dentist-list {
  margin-bottom: 25px;
}

.dentist-list p {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.social-section h4 {
  color: var(--lion);
  font-size: 0.95rem;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--lion);
  padding-bottom: 8px;
}

.footer-section a {
  color: var(--lion);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--alabaster);
}

.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  padding: 8px 15px;
  background: var(--alabaster-button);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bistre);
  display: inline-block;
}

.social-links a:hover {
  background: var(--lion-button-hover);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--coffee);
  color: var(--lion);
  opacity: 0.8;
  font-size: 0.85rem;
}

/* Responsive Design for Header and Footer */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .phone-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .nav-menu {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .phone-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }
  
  .nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
  }
  
  /* Show hamburger button */
  .nav-toggle {
    display: block;
    position: relative;
  }
  
  /* Mobile menu styles */
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--alabaster);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
  }
  
  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .phone-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

  .footer-brand {
    grid-column: 1;
    margin-bottom: 30px;
    justify-content: center;
  }

  .footer-logo {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 55px;
  }
  
  .nav-logo img {
    height: 40px;
    max-width: 150px;
  }
  
  .nav-menu {
    top: 55px;
    max-height: calc(100vh - 55px);
  }
}