/* Hide page title */
.page .entry-title {
  display: none;
}

/* Header cleanup */
.site-header {
  border-bottom: none;
  box-shadow: none !important;
}

/* Centered logo styles */
.logo-centered,
figure.wp-block-image.logo-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.logo-centered img,
figure.wp-block-image.logo-centered img {
  max-width: 150px;
  height: auto;
}

/* Tight bullet styling */
.tight-bullets {
  padding-left: 0.5em;
}

.tight-bullets li::marker {
  content: "⛓ ";
  color: #e60000;
  font-size: 1.2em;
  font-weight: bold;
}

/* Red rope icon styling */
.red-rope-line {
  text-align: center;
  margin: 1em 0;
  color: #ffffff !important;
}

.red-rope-line .rope-icon {
  color: #e60000 !important;
  font-weight: bold;
}

img.rope-divider {
  display: block;
  margin: 2em auto;
  max-width: 800px;
  height: auto;
}

/* Logo/Icon */
.site-logo {
  max-height: 40px;
  margin-right: 12px;
  vertical-align: middle;
}

/* Nav container */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  padding: 1em 0;
}

/* Center nav items */
nav ul {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

nav ul li {
  position: relative;
  display: inline-block;
  z-index: 1;
}

nav ul li a {
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #e63946;
  transform: scale(1.05);
}

/* Highlight active page */
nav ul li.current-menu-item a {
  color: #e63946;
  border-bottom: 2px solid #e63946;
}

/* Dropdown menu styling */
nav ul li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000;
  z-index: 10;
  padding: 1em;
  border: 1px solid #444;
  min-width: 200px;
  display: none;
}

nav ul li:hover ul.sub-menu {
  display: block;
}

nav ul li ul.sub-menu li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0.5em 1em;
  transition: all 0.3s ease;
}

nav ul li ul.sub-menu li a:hover {
  color: #e63946;
  background-color: #111;
}

/* Rope divider bar */
.rope-divider-bar {
  width: 100%;
  height: 40px;
  background: url('https://thisropefloats.ca/wp-content/uploads/2025/09/Rope-Spacer-1.png') no-repeat center;
  background-size: cover;
  margin-top: 0;
  z-index: 1;
  position: relative;
}

/* Services page layout */
.services-list {
  padding-top: 2em;
}

.services-list h2 {
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  text-align: center;
}

.services-list p {
  margin-bottom: 2em;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hover animation for service links */
.service-link {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.service-link:hover {
  color: #e63946;
  transform: scale(1.05);
}

/* 📱 Mobile styles */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  nav ul li {
    display: block;
    width: 100%;
  }

  nav ul li ul.sub-menu {
    position: static;
    border: none;
    padding: 0;
    display: block;
  }

  nav ul li ul.sub-menu li a {
    padding-left: 1.5em;
  }

  nav ul li a {
    padding: 0.75em 1em;
  }

  /* Float the close icon cleanly */
  .dropdown-icon.close {
    position: fixed;
    top: 1em;
    right: 1em;
    z-index: 1001;
    background: transparent;
    color: #fff;
    font-size: 1.5em;
    padding: 0;
    line-height: 1;
    height: auto;
    pointer-events: auto;
  }

  /* Ensure menu items are not overlapped */
  nav ul,
  nav ul li,
  nav ul li a {
    position: relative;
    z-index: 1000;
  }
}

/* Suppress open icon when menu is expanded */
button[aria-expanded="true"] .dropdown-icon.open {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

/* 🧼 Collapse menu-button-container only when toggle is expanded */
.menu-button-container:has(button[aria-expanded="true"]) {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}


