:root {
  --bg: #eaf5f2;
  --surface: #ffffff;
  --surface-alt: #f7fcfb;
  --primary: #3aa79d;
  --primary-dark: #297c6b;
  --text: #154242;
  --muted: #596e6a;
  --border: rgba(58, 167, 157, 0.15);
  --shadow: 0 24px 48px rgba(27, 95, 86, 0.12);
}

* {
  box-sizing: border-box;
}

.btnback {
  width: 18px;
  height: 18px;
  align-items: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d8e3e3;
  color: #6FC2BB;
  width: 100%;
  padding: 10px 40px;
  box-sizing: border-box;
  z-index: 10;
  position: relative;
  overflow: visible;
}

header h1 {
  font-size: 22px;
  font-weight: bold;
  color: #6FC2BB;
}

.petsmart {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
}

.petsmart .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.petsmart .logo {
  width: 50px;
  height: auto;
  z-index: 2;
}

.petsmart .brand-text {
  font-size: 22px;
  color: #6FC2BB;
  margin: 0;
}

nav {
  display: flex;
  gap: 0px;
  z-index: 2;
  position: relative;
}

nav a {
  text-decoration: none;
  color: #6FC2BB;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease;
  padding: 10px 30px;
  border-radius: 4px;
  z-index: 2;
}

nav a:hover, nav a.active {
  background: #6FC2BB;
  color: white;
  align-items: center;
  z-index: 2;
}

/* Dropdown container */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* Dropdown container */
nav ul li {
  position: relative; /* ensures submenu is positioned relative to parent */
  z-index: 11;        /* raise above other nav items */
}

/* Dropdown menu */
.menu {
  display: none;
  position: absolute;
  top: 100%; /* directly below SERVICES */
  left: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 4px;
  min-width: 160px;
  z-index: 9999; /* ensure it's clickable above nav/header */
  pointer-events: auto; /* allow clicks */
}

/* Dropdown menu links */
.menu a {
  display: block;
  padding: 10px 20px;
  color: #6FC2BB;
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  background: #6FC2BB;
  color: white;
}

/* Show dropdown on hover */
.dropdown:hover .menu,
.dropdown.active .menu {
  display: block;
}
