/* Modern Navigation Styles */

/* Body styles when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  transition: padding 0.3s ease;
}

.scrolled .header-inner {
  padding: 1rem 0;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
}

.site-logo {
  max-height: 5rem;
  width: auto;
  transition: max-height 0.3s ease;
}

.scrolled .site-logo {
  max-height: 4rem;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

/* Adjust main content spacing for fixed header */
.main.content {
  padding-top: 9rem;
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  margin: 0 1rem; /* Increased from 0.5rem */
}

.nav-link {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #484848;
  font-size: 1.8rem;
  font-weight: 600; /* Increased from 500 */
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-family: century-gothic;
}

.nav-link:hover,
.nav-link:focus {
  color: #5A843B;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5A843B;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

/* No dropdown menu styles needed */

/* Contact Info in Nav */
.nav-contact {
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-link {
  display: flex;
  align-items: center;
  color: #484848;
  font-size: 1.8rem; /* Increased from 1.6rem */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover,
.phone-link:focus {
  color: #5A843B;
}

.phone-link i {
  margin-right: 0.8rem;
  color: #5A843B;
  font-size: 1.8rem; /* Larger icon */
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 5rem; /* Increased from 4rem */
  height: 5rem; /* Increased from 4rem */
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 3rem; /* Increased from 2.5rem */
  height: 0.4rem; /* Increased from 0.3rem */
  background-color: #5A843B;
  position: absolute;
  border-radius: 0.3rem;
  transition: all 0.3s ease;
}

.menu-toggle-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  left: 0;
}

.menu-toggle-icon::before {
  top: -1rem; /* Increased from -0.8rem */
}

.menu-toggle-icon::after {
  bottom: -1rem; /* Increased from -0.8rem */
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #484848;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: #484848;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .nav-link {
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
  }

  .nav-contact {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
  }

  .phone-link {
    font-size: 1.5rem;
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30rem;
    max-width: 80%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .menu-toggle[aria-expanded="true"] + .nav-container {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem; /* Add spacing between menu items */
  }

  .nav-item {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link {
    padding: 1.5rem 0;
    font-size: 2.2rem; /* Larger text for mobile */
  }

  /* No dropdown styles needed for mobile */

  .nav-contact {
    margin: 2rem 0 0;
    padding: 2rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .phone-link {
    font-size: 2.2rem; /* Larger phone number for mobile */
  }

  .phone-link i {
    font-size: 2.2rem; /* Larger icon for mobile */
  }
}

@media (max-width: 576px) {
  .site-logo {
    max-height: 4rem;
  }

  .scrolled .site-logo {
    max-height: 3.5rem;
  }

  .header-inner {
    padding: 1rem 0;
  }

  .scrolled .header-inner {
    padding: 0.8rem 0;
  }
}
